iPhone⼿机型号信息⼤全(最新)
2019年9⽉新增设备
iPhone11,iPhone11Pro,iPhone11ProMax
//获得设备型号
+(NSString*)getCurrentDevice
{
intmib[2];
size_tlen;
char*machine;
mib[0]=CTL_HW;
mib[1]=HW_MACHINE;
sysctl(mib,2,NULL,&len,NULL,0);
machine=malloc(len);
sysctl(mib,2,machine,&len,NULL,0);
NSString*platform=[NSStringstringWithCString:machineencoding:NSASCIIStringEncoding];
free(machine);
//iPhone
if([platformisEqualToString:@"iPhone1,1"])return@"iPhone2G";
if([platformisEqualToString:@"iPhone1,2"])return@"iPhone3G";
if([platformisEqualToString:@"iPhone2,1"])return@"iPhone3GS";
if([platformisEqualToString:@"iPhone3,1"])return@"iPhone4";
if([platformisEqualToString:@"iPhone3,2"])return@"iPhone4";
if([platformisEqualToString:@"iPhone3,3"])return@"iPhone4";
if([platformisEqualToString:@"iPhone4,1"])return@"iPhone4S";
if([platformisEqualToString:@"iPhone5,1"])return@"iPhone5";
if([platformisEqualToString:@"iPhone5,2"])return@"iPhone5";
if([platformisEqualToString:@"iPhone5,3"])return@"iPhone5c";
if([platformisEqualToString:@"iPhone5,4"])return@"iPhone5c";
if([platformisEqualToString:@"iPhone6,1"])return@"iPhone5s";
if([platformisEqualToString:@"iPhone6,2"])return@"iPhone5s";
if([platformisEqualToString:@"iPhone7,2"])return@"iPhone6";
if([platformisEqualToString:@"iPhone7,1"])return@"iPhone6Plus";
if([platformisEqualToString:@"iPhone8,1"])return@"iPhone6s";
if([platformisEqualToString:@"iPhone8,2"])return@"iPhone6sPlus";
if([platformisEqualToString:@"iPhone8,3"])return@"iPhoneSE";
if([platformisEqualToString:@"iPhone8,4"])return@"iPhoneSE";
if([platformisEqualToString:@"iPhone9,1"])return@"iPhone7";
if([platformisEqualToString:@"iPhone9,2"]||
[platformisEqualToString:@"iPhone9,4"])return@"iPhone7Plus";
if([platformisEqualToString:@"iPhone10,1"]||
[platformisEqualToString:@"iPhone10,4"])return@"iPhone8";
if([platformisEqualToString:@"iPhone10,2"]||
[platformisEqualToString:@"iPhone10,5"])return@"iPhone8Plus";
if([platformisEqualToString:@"iPhone10,3"]||
[platformisEqualToString:@"iPhone10,6"])return@"iPhoneX";
if([platformisEqualToString:@"iPhone11,8"])return@"iPhoneXR";
if([platformisEqualToString:@"iPhone11,2"])return@"iPhoneXS";
if([platformisEqualToString:@"iPhone11,4"]||
[platformisEqualToString:@"iPhone11,6"])return@"iPhoneXSMax";
if([platformisEqualToString:@"iPhone12,1"])return@"iPhone11";
if([platformisEqualToString:@"iPhone12,3"])return@"iPhone11Pro";
if([platformisEqualToString:@"iPhone12,5"])return@"iPhone11ProMax";
//iPodTouch
if([platformisEqualToString:@"iPod1,1"])return@"iPodTouch";
if([platformisEqualToString:@"iPod2,1"])return@"iPodTouch2G";
if([platformisEqualToString:@"iPod3,1"])return@"iPodTouch3G";
if([platformisEqualToString:@"iPod4,1"])return@"iPodTouch4G";
if([platformisEqualToString:@"iPod5,1"])return@"iPodTouch5G";
if([platformisEqualToString:@"iPod7,1"])return@"iPodTouch6G";
//iPad
if([platformisEqualToString:@"iPad1,1"])return@"iPad";
if([platformisEqualToString:@"iPad2,1"])return@"iPad2";
if([platformisEqualToString:@"iPad2,2"])return@"iPad2";
if([platformisEqualToString:@"iPad2,3"])return@"iPad2";
if([platformisEqualToString:@"iPad2,3"])return@"iPad2";
if([platformisEqualToString:@"iPad2,4"])return@"iPad2";
if([platformisEqualToString:@"iPad3,1"])return@"iPad3";
if([platformisEqualToString:@"iPad3,2"])return@"iPad3";
if([platformisEqualToString:@"iPad3,3"])return@"iPad3";
if([platformisEqualToString:@"iPad3,4"])return@"iPad4";
if([platformisEqualToString:@"iPad3,5"])return@"iPad4";
if([platformisEqualToString:@"iPad3,6"])return@"iPad4";
//iPadAir
if([platformisEqualToString:@"iPad4,1"])return@"iPadAir";
if([platformisEqualToString:@"iPad4,2"])return@"iPadAir";
if([platformisEqualToString:@"iPad4,3"])return@"iPadAir";
if([platformisEqualToString:@"iPad5,3"])return@"iPadAir2";
if([platformisEqualToString:@"iPad5,4"])return@"iPadAir2";
//iPadpro
if([platformisEqualToString:@"iPad6,3"])return@"iPadPro";
if([platformisEqualToString:@"iPad6,4"])return@"iPadPro";
if([platformisEqualToString:@"iPad6,7"])return@"iPadPro";
if([platformisEqualToString:@"iPad6,8"])return@"iPadPro";
if([platformisEqualToString:@"iPad6,11"]||
[platformisEqualToString:@"iPad6,12"])return@"iPad5";
if([platformisEqualToString:@"iPad7,1"]||
[platformisEqualToString:@"iPad7,2"])return@"iPadPro12.9-inch2";
if([platformisEqualToString:@"iPad7,3"]||
[platformisEqualToString:@"iPad7,4"])return@"iPadPro10.5-inch";
//iPadmini
if([platformisEqualToString:@"iPad2,5"])return@"iPadmini1G";
if([platformisEqualToString:@"iPad2,6"])return@"iPadmini1G";
if([platformisEqualToString:@"iPad2,7"])return@"iPadmini1G";
if([platformisEqualToString:@"iPad4,4"])return@"iPadmini2";
if([platformisEqualToString:@"iPad4,5"])return@"iPadmini2";
if([platformisEqualToString:@"iPad4,6"])return@"iPadmini2";
if([platformisEqualToString:@"iPad4,7"])return@"iPadmini3";
if([platformisEqualToString:@"iPad4,8"])return@"iPadmini3";
if([platformisEqualToString:@"iPad4,9"])return@"iPadmini3";
if([platformisEqualToString:@"iPad5,1"])return@"iPadmini4";
if([platformisEqualToString:@"iPad5,2"])return@"iPadmini4";
if([platformisEqualToString:@"i386"])return@"iPhoneSimulator";
if([platformisEqualToString:@"x86_64"])return@"iPhoneSimulator";
return@"Unknown";
}
iPhone:
机型像素⽐例ppi尺⼨机型代码发布时间
iPhoneXR1792×82819.5:93266.1iPhone11,82018.09
iPhoneXSMax2688×124218:94586.5iPhone11,4iPhone11,62018.09
iPhoneXS2436×112518:94585.8iPhone11,22018.09
iPhoneX2436×112518:94585.8iPhone10,3iPhone10,62017.09
iPhone8plus1920×108016:94015.5iPhone10,2iPhone10,52017.09
iPhone81334×75016:94014.7iPhone10,1iPhone10,42017.09
iPhone7plus1920×108016:94015.5iPhone9,2iPhone9,42016.09
iPhone71334×75016:94014.7iPhone9,1iPhone9,32016.09
iPhone5SE1136×64016:94014.0iPhone8,42016.03
iPhone6splus1920×108016:94015.5iPhone8,12015.09
iPhone6s1334×75016:94014.7iPhone8,22015.09
iPhone6plus1920×108016:94015.5iPhone7,12014.09
iPhone61334×75016:94014.7iPhone7,22014.09
iPhone5s1136×64016:93264.0iPhone6,1iPhone6,22013.09
机型像素⽐例ppi尺⼨机型代码发布时间
iPad:
机型逻辑分辨率Scale物理分辨率⽐例ppi尺⼨型号代码发布时间
iPad51024×768@2x2048×15364:32649.7iPad6,11iPad6,122017.03
iPad41024×768@2x2048×15364:32649.7iPad3,4iPad3,5iPad3,62012.10
iPad31024×768@2x2048×15364:32649.7iPad3,1iPad3,2iPad3,32012.03
iPad21024×768@1x1024×7684:31639.7iPad2,1iPad2,2iPad2,3iPad2,42011.03
iPad1024×768@1x1024×7684:31639.7iPad1,12010.01
dAir:iPadAir:
机型逻辑分辨率Scale物理分辨率⽐例ppi尺⼨型号代码发布时间
iPadAir1024×768@2x2048×15364:32649.7iPad4,1iPad4,2iPad4,32013.10
iPadAir21024×768@2x2048×15364:32649.7iPad5,3iPad5,42014.10
dProiPadPro:
机型逻辑分辨率Scale物理分辨率⽐例ppi尺⼨型号代码发布时间
iPadPro10.51112×834@2x2224×16684:326410.5iPad7,3iPad7,42017
iPadPro12.9-inch21366×1024@2x2732×20484:326412.9iPad7,1iPad7,22017
iPadPro9.7-inch1024×768@2x2048×15364:32649.7iPad6,3iPad6,42016.03
iPadPro12.9-inch1366×1024@2x2732×20484:326412.9iPad6,7iPad6,82015.09
iPadMini:
机型逻辑分辨率Scale物理分辨率⽐例ppi尺⼨型号代码发布时间
iPadmini41024×768@2X2048×15364:33267.9iPad5,1iPad5,2iPad4,92015.09
iPadmini31024×768@2X2048×15364:33267.9iPad4,7iPad4,8iPad4,92014.10
iPadmini21024×768@2X2048×15364:33267.9iPad4,5iPad4,6iPad4,72013.10
iPadmini1024×768@1X1024×7684:31637.9iPad2,5iPad2,6iPad2,72012.10
Samulitor:
机型型号代码
Simulatori386、x86_64
Unknown
机型型号代码
本文发布于:2023-03-04 06:54:30,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/1677884070132047.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:手机型号.doc
本文 PDF 下载地址:手机型号.pdf
留言与评论(共有 0 条评论) |