Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.
iPhone
iPod Touch
转载于:https://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk
收起
You can use the UIDevice class like this:
UIDevice
NSString *deviceType = [UIDevice currentDevice].model; if([deviceType isEqualToString:@"iPhone"]) // it's an iPhone
报告相同问题?