以下是我收集的ios目前为止移动设备型号,ipad air不知道,本人没有这款设备,求指导的给个回复,在这谢谢了
///** //////////////////// 设备类型 字符串 //////////////////// */
/// SIMULATOR
#define SIMULATOR @"simulator"
#define SIMULATOR_i386 @"i386" // on the simulator
#define SIMULATOR_iPad @"x86_64"
/// IPOD_TOUCH
#define IPOD_TOUCH_1 @"iPod1,1" // on iPod Touch
#define IPOD_TOUCH_2 @"iPod2,1" // on iPod Touch Second Generation
#define IPOD_TOUCH_3 @"iPod3,1" // on iPod Touch Third Generation
#define IPOD_TOUCH_4 @"iPod4,1" // on iPod Touch Fourth Generation
#define IPOD_TOUCH_5 @"iPod5,1" // on iPod Touch Fifth Generation
/// IPHONE
#define IPHONE_1 @"iPhone1,1" // on iPhone
#define IPHONE_1_3G @"iPhone1,2" // on iPhone 3G
#define IPHONE_2_3GS @"iPhone2,1" // on iPhone 3GS
#define IPHONE_4 @"iPhone3,1" // on iPhone 4
#define IPHONE_4S @"iPhone4,1" // on iPhone 4S
#define IPHONE_5_ @"iPhone5,1"// on iPhone 5 (model A1428, AT&T/Canada)
#define IPHONE_5 @"iPhone5,2"// on iPhone 5 (model A1429, everything else)
/// IPAD
#define IPAD_1 @"iPad1,1" // on iPad
#define IPAD_2 @"iPad2,1" // on iPad 2
#define IPAD_3 @"iPad3,1" // on 3rd Generation iPad-The New ipad
#define IPAD_4 @"iPad3,4" // on 4th Generation iPad
/// IPAD_MINI
#define IPAD_MINI @"iPad2,5" // on iPad Mini
#define IPAD_MINI_2 @"iPad4,4" // on iPad Mini2
====================================
github上别人分享的设备型号大全,感谢dcty。
https://github.com/InderKumarRathore/UIDevice-Hardware/blob/master/UIDevice%2BHardware.m