2023年12月6日发(作者:后天睿)
iPhone手机型号信息大全(最新)
2019年9月新增设备
iPhone 11 , iPhone 11 Pro, iPhone 11 Pro Max
//获得设备型号
+ (NSString *)getCurrentDevice
{
int mib[2];
size_t len;
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 = [NSString stringWithCString:machine encoding:NSASCIIStringEncoding];
free(machine);
// iPhone
if ([platform isEqualToString:@"iPhone1,1"]) return @"iPhone2G";
if ([platform isEqualToString:@"iPhone1,2"]) return @"iPhone3G";
if ([platform isEqualToString:@"iPhone2,1"]) return @"iPhone3GS";
if ([platform isEqualToString:@"iPhone3,1"]) return @"iPhone4";
if ([platform isEqualToString:@"iPhone3,2"]) return @"iPhone4";
if ([platform isEqualToString:@"iPhone3,3"]) return @"iPhone4";
if ([platform isEqualToString:@"iPhone4,1"]) return @"iPhone4S";
if ([platform isEqualToString:@"iPhone5,1"]) return @"iPhone5";
if ([platform isEqualToString:@"iPhone5,2"]) return @"iPhone5";
if ([platform isEqualToString:@"iPhone5,3"]) return @"iPhone5c";
if ([platform isEqualToString:@"iPhone5,4"]) return @"iPhone5c";
if ([platform isEqualToString:@"iPhone6,1"]) return @"iPhone5s";
if ([platform isEqualToString:@"iPhone6,2"]) return @"iPhone5s";
if ([platform isEqualToString:@"iPhone7,2"]) return @"iPhone6";
if ([platform isEqualToString:@"iPhone7,1"]) return @"iPhone6Plus";
if ([platform isEqualToString:@"iPhone8,1"]) return @"iPhone6s";
if ([platform isEqualToString:@"iPhone8,2"]) return @"iPhone6sPlus";
if ([platform isEqualToString:@"iPhone8,3"]) return @"iPhoneSE";
if ([platform isEqualToString:@"iPhone8,4"]) return @"iPhoneSE";
if ([platform isEqualToString:@"iPhone9,1"]) return @"iPhone7";
if ([platform isEqualToString:@"iPhone9,2"] ||
[platform isEqualToString:@"iPhone9,4"]) return @"iPhone7Plus";
if ([platform isEqualToString:@"iPhone10,1"] ||
[platform isEqualToString:@"iPhone10,4"]) return @"iPhone 8";
if ([platform isEqualToString:@"iPhone10,2"] ||
[platform isEqualToString:@"iPhone10,5"]) return @"iPhone 8 Plus";
if ([platform isEqualToString:@"iPhone10,3"] ||
[platform isEqualToString:@"iPhone10,6"]) return @"iPhone X";
if ([platform isEqualToString:@"iPhone11,8"]) return @"iPhone XR";
if ([platform isEqualToString:@"iPhone11,2"]) return @"iPhone XS";
if ([platform isEqualToString:@"iPhone11,4"] ||
[platform isEqualToString:@"iPhone11,6"]) return @"iPhone XS Max";
if ([platform isEqualToString:@"iPhone12,1"]) return @"iPhone 11";
if ([platform isEqualToString:@"iPhone12,3"]) return @"iPhone 11 Pro";
if ([platform isEqualToString:@"iPhone12,5"]) return @"iPhone 11 Pro Max";
//iPod Touch
if ([platform isEqualToString:@"iPod1,1"]) return @"iPodTouch";
if ([platform isEqualToString:@"iPod2,1"]) return @"iPodTouch2G";
if ([platform isEqualToString:@"iPod3,1"]) return @"iPodTouch3G";
if ([platform isEqualToString:@"iPod4,1"]) return @"iPodTouch4G";
if ([platform isEqualToString:@"iPod5,1"]) return @"iPodTouch5G";
if ([platform isEqualToString:@"iPod7,1"]) return @"iPodTouch6G";
//iPad
if ([platform isEqualToString:@"iPad1,1"]) return @"iPad";
if ([platform isEqualToString:@"iPad2,1"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,2"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,3"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,3"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,4"]) return @"iPad2";
if ([platform isEqualToString:@"iPad3,1"]) return @"iPad3";
if ([platform isEqualToString:@"iPad3,2"]) return @"iPad3";
if ([platform isEqualToString:@"iPad3,3"]) return @"iPad3";
if ([platform isEqualToString:@"iPad3,4"]) return @"iPad4";
if ([platform isEqualToString:@"iPad3,5"]) return @"iPad4";
if ([platform isEqualToString:@"iPad3,6"]) return @"iPad4";
//iPad Air
if ([platform isEqualToString:@"iPad4,1"]) return @"iPadAir";
if ([platform isEqualToString:@"iPad4,2"]) return @"iPadAir";
if ([platform isEqualToString:@"iPad4,3"]) return @"iPadAir";
if ([platform isEqualToString:@"iPad5,3"]) return @"iPadAir2";
if ([platform isEqualToString:@"iPad5,4"]) return @"iPadAir2";
//iPad pro
if ([platform isEqualToString:@"iPad6,3"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,4"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,7"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,8"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,11"] ||
[platform isEqualToString:@"iPad6,12"]) return @"iPad 5";
if ([platform isEqualToString:@"iPad7,1"] ||
[platform isEqualToString:@"iPad7,2"]) return @"iPad Pro 12.9-inch 2";
if ([platform isEqualToString:@"iPad7,3"] ||
[platform isEqualToString:@"iPad7,4"]) return @"iPad Pro 10.5-inch";
//iPad mini
if ([platform isEqualToString:@"iPad2,5"]) return @"iPadmini1G";
if ([platform isEqualToString:@"iPad2,6"]) return @"iPadmini1G";
if ([platform isEqualToString:@"iPad2,7"]) return @"iPadmini1G";
if ([platform isEqualToString:@"iPad4,4"]) return @"iPadmini2";
if ([platform isEqualToString:@"iPad4,5"]) return @"iPadmini2";
if ([platform isEqualToString:@"iPad4,6"]) return @"iPadmini2";
if ([platform isEqualToString:@"iPad4,7"]) return @"iPadmini3";
if ([platform isEqualToString:@"iPad4,8"]) return @"iPadmini3";
if ([platform isEqualToString:@"iPad4,9"]) return @"iPadmini3";
if ([platform isEqualToString:@"iPad5,1"]) return @"iPadmini4";
if ([platform isEqualToString:@"iPad5,2"]) return @"iPadmini4";
if ([platform isEqualToString:@"i386"]) return @"iPhoneSimulator";
if ([platform isEqualToString:@"x86_64"]) return @"iPhoneSimulator";
return @"Unknown";
}
iPhone:
机型
iPhone XR
iPhone XS Max
iPhone XS
iPhone X
iPhone 8 plus
iPhone 8
iPhone 7 plus
iPhone 7
iPhone 5 SE
iPhone 6s plus
像素
1792×828
2688×1242
2436×1125
2436×1125
1920×1080
1334×750
1920×1080
1334×750
1136×640
1920×1080
比例
19.5:9
18:9
18:9
18:9
16:9
16:9
16:9
16:9
16:9
16:9
ppi
326
458
458
458
401
401
401
401
401
401
尺寸
6.1
6.5
5.8
5.8
5.5
4.7
5.5
4.7
4.0
5.5
机型代码
iPhone11,8
iPhone11,4 iPhone11,6
iPhone11,2
iPhone10,3 iPhone10,6
iPhone10,2 iPhone10,5
iPhone10,1 iPhone10,4
iPhone9,2 iPhone9,4
iPhone9,1 iPhone9,3
iPhone8,4
iPhone8,1
发布时间
2018.09
2018.09
2018.09
2017.09
2017.09
2017.09
2016.09
2016.09
2016.03
2015.09
机型
iPhone 6s
iPhone 6 plus
iPhone 6
iPhone 5s
像素
1334×750
1920×1080
1334×750
1136×640
比例
16:9
16:9
16:9
16:9
ppi
401
401
401
326
尺寸
4.7
5.5
4.7
4.0
机型代码
iPhone8,2
iPhone7,1
iPhone7,2
iPhone6,1 iPhone6,2
发布时间
2015.09
2014.09
2014.09
2013.09
iPad:
机型
iPad 5
iPad 4
iPad 3
iPad 2
iPad
逻辑分辨率
1024×768
1024×768
1024×768
1024×768
1024×768
Scale
@2x
@2x
@2x
@1x
@1x
物理分辨率
2048×1536
2048×1536
2048×1536
1024×768
1024×768
比例
4:3
4:3
4:3
4:3
4:3
ppi
264
264
264
163
163
尺寸
9.7
9.7
9.7
9.7
9.7
型号代码
iPad6,11 iPad6,12
iPad3,4 iPad3,5 iPad3,6
iPad3,1 iPad3,2 iPad3,3
iPad2,1 iPad2,2 iPad2,3 iPad2,4
iPad1,1
发布时间
2017.03
2012.10
2012.03
2011.03
2010.01
iPad Aird Air::
机型
iPad Air
iPad Air 2
逻辑分辨率
1024×768
1024×768
Scale
@2x
@2x
物理分辨率
2048×1536
2048×1536
比例
4:3
4:3
ppi
264
264
尺寸
9.7
9.7
型号代码
iPad4,1 iPad4,2 iPad4,3
iPad5,3 iPad5,4
发布时间
2013.10
2014.10
iPad Prod Pro:
机型
iPad Pro 10.5
iPad Pro 12.9-inch 2
iPad Pro 9.7-inch
iPad Pro 12.9-inch
逻辑分辨率
1112×834
1366×1024
1024×768
1366×1024
Scale
@2x
@2x
@2x
@2x
物理分辨率
2224×1668
2732×2048
2048×1536
2732×2048
比例
4:3
4:3
4:3
4:3
ppi
264
264
264
264
尺寸
10.5
12.9
9.7
12.9
型号代码
iPad7,3 iPad7,4
iPad7,1 iPad7,2
iPad6,3 iPad6,4
iPad6,7 iPad6,8
发布时间
2017
2017
2016.03
2015.09
iPad Mini:
机型
iPad mini 4
iPad mini 3
iPad mini 2
iPad mini
逻辑分辨率
1024×768
1024×768
1024×768
1024×768
Scale
@2X
@2X
@2X
@1X
物理分辨率
2048×1536
2048×1536
2048×1536
1024×768
比例
4:3
4:3
4:3
4:3
ppi
326
326
326
163
尺寸
7.9
7.9
7.9
7.9
型号代码
iPad5,1 iPad5,2 iPad4,9
iPad4,7 iPad4,8 iPad4,9
iPad4,5 iPad4,6 iPad4,7
iPad2,5 iPad2,6 iPad2,7
发布时间
2015.09
2014.10
2013.10
2012.10
Samulitor:
机型
Simulator
型号代码
i386、x86_64Unknown机型型号代码
2023年12月6日发(作者:后天睿)
iPhone手机型号信息大全(最新)
2019年9月新增设备
iPhone 11 , iPhone 11 Pro, iPhone 11 Pro Max
//获得设备型号
+ (NSString *)getCurrentDevice
{
int mib[2];
size_t len;
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 = [NSString stringWithCString:machine encoding:NSASCIIStringEncoding];
free(machine);
// iPhone
if ([platform isEqualToString:@"iPhone1,1"]) return @"iPhone2G";
if ([platform isEqualToString:@"iPhone1,2"]) return @"iPhone3G";
if ([platform isEqualToString:@"iPhone2,1"]) return @"iPhone3GS";
if ([platform isEqualToString:@"iPhone3,1"]) return @"iPhone4";
if ([platform isEqualToString:@"iPhone3,2"]) return @"iPhone4";
if ([platform isEqualToString:@"iPhone3,3"]) return @"iPhone4";
if ([platform isEqualToString:@"iPhone4,1"]) return @"iPhone4S";
if ([platform isEqualToString:@"iPhone5,1"]) return @"iPhone5";
if ([platform isEqualToString:@"iPhone5,2"]) return @"iPhone5";
if ([platform isEqualToString:@"iPhone5,3"]) return @"iPhone5c";
if ([platform isEqualToString:@"iPhone5,4"]) return @"iPhone5c";
if ([platform isEqualToString:@"iPhone6,1"]) return @"iPhone5s";
if ([platform isEqualToString:@"iPhone6,2"]) return @"iPhone5s";
if ([platform isEqualToString:@"iPhone7,2"]) return @"iPhone6";
if ([platform isEqualToString:@"iPhone7,1"]) return @"iPhone6Plus";
if ([platform isEqualToString:@"iPhone8,1"]) return @"iPhone6s";
if ([platform isEqualToString:@"iPhone8,2"]) return @"iPhone6sPlus";
if ([platform isEqualToString:@"iPhone8,3"]) return @"iPhoneSE";
if ([platform isEqualToString:@"iPhone8,4"]) return @"iPhoneSE";
if ([platform isEqualToString:@"iPhone9,1"]) return @"iPhone7";
if ([platform isEqualToString:@"iPhone9,2"] ||
[platform isEqualToString:@"iPhone9,4"]) return @"iPhone7Plus";
if ([platform isEqualToString:@"iPhone10,1"] ||
[platform isEqualToString:@"iPhone10,4"]) return @"iPhone 8";
if ([platform isEqualToString:@"iPhone10,2"] ||
[platform isEqualToString:@"iPhone10,5"]) return @"iPhone 8 Plus";
if ([platform isEqualToString:@"iPhone10,3"] ||
[platform isEqualToString:@"iPhone10,6"]) return @"iPhone X";
if ([platform isEqualToString:@"iPhone11,8"]) return @"iPhone XR";
if ([platform isEqualToString:@"iPhone11,2"]) return @"iPhone XS";
if ([platform isEqualToString:@"iPhone11,4"] ||
[platform isEqualToString:@"iPhone11,6"]) return @"iPhone XS Max";
if ([platform isEqualToString:@"iPhone12,1"]) return @"iPhone 11";
if ([platform isEqualToString:@"iPhone12,3"]) return @"iPhone 11 Pro";
if ([platform isEqualToString:@"iPhone12,5"]) return @"iPhone 11 Pro Max";
//iPod Touch
if ([platform isEqualToString:@"iPod1,1"]) return @"iPodTouch";
if ([platform isEqualToString:@"iPod2,1"]) return @"iPodTouch2G";
if ([platform isEqualToString:@"iPod3,1"]) return @"iPodTouch3G";
if ([platform isEqualToString:@"iPod4,1"]) return @"iPodTouch4G";
if ([platform isEqualToString:@"iPod5,1"]) return @"iPodTouch5G";
if ([platform isEqualToString:@"iPod7,1"]) return @"iPodTouch6G";
//iPad
if ([platform isEqualToString:@"iPad1,1"]) return @"iPad";
if ([platform isEqualToString:@"iPad2,1"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,2"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,3"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,3"]) return @"iPad2";
if ([platform isEqualToString:@"iPad2,4"]) return @"iPad2";
if ([platform isEqualToString:@"iPad3,1"]) return @"iPad3";
if ([platform isEqualToString:@"iPad3,2"]) return @"iPad3";
if ([platform isEqualToString:@"iPad3,3"]) return @"iPad3";
if ([platform isEqualToString:@"iPad3,4"]) return @"iPad4";
if ([platform isEqualToString:@"iPad3,5"]) return @"iPad4";
if ([platform isEqualToString:@"iPad3,6"]) return @"iPad4";
//iPad Air
if ([platform isEqualToString:@"iPad4,1"]) return @"iPadAir";
if ([platform isEqualToString:@"iPad4,2"]) return @"iPadAir";
if ([platform isEqualToString:@"iPad4,3"]) return @"iPadAir";
if ([platform isEqualToString:@"iPad5,3"]) return @"iPadAir2";
if ([platform isEqualToString:@"iPad5,4"]) return @"iPadAir2";
//iPad pro
if ([platform isEqualToString:@"iPad6,3"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,4"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,7"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,8"]) return @"iPadPro";
if ([platform isEqualToString:@"iPad6,11"] ||
[platform isEqualToString:@"iPad6,12"]) return @"iPad 5";
if ([platform isEqualToString:@"iPad7,1"] ||
[platform isEqualToString:@"iPad7,2"]) return @"iPad Pro 12.9-inch 2";
if ([platform isEqualToString:@"iPad7,3"] ||
[platform isEqualToString:@"iPad7,4"]) return @"iPad Pro 10.5-inch";
//iPad mini
if ([platform isEqualToString:@"iPad2,5"]) return @"iPadmini1G";
if ([platform isEqualToString:@"iPad2,6"]) return @"iPadmini1G";
if ([platform isEqualToString:@"iPad2,7"]) return @"iPadmini1G";
if ([platform isEqualToString:@"iPad4,4"]) return @"iPadmini2";
if ([platform isEqualToString:@"iPad4,5"]) return @"iPadmini2";
if ([platform isEqualToString:@"iPad4,6"]) return @"iPadmini2";
if ([platform isEqualToString:@"iPad4,7"]) return @"iPadmini3";
if ([platform isEqualToString:@"iPad4,8"]) return @"iPadmini3";
if ([platform isEqualToString:@"iPad4,9"]) return @"iPadmini3";
if ([platform isEqualToString:@"iPad5,1"]) return @"iPadmini4";
if ([platform isEqualToString:@"iPad5,2"]) return @"iPadmini4";
if ([platform isEqualToString:@"i386"]) return @"iPhoneSimulator";
if ([platform isEqualToString:@"x86_64"]) return @"iPhoneSimulator";
return @"Unknown";
}
iPhone:
机型
iPhone XR
iPhone XS Max
iPhone XS
iPhone X
iPhone 8 plus
iPhone 8
iPhone 7 plus
iPhone 7
iPhone 5 SE
iPhone 6s plus
像素
1792×828
2688×1242
2436×1125
2436×1125
1920×1080
1334×750
1920×1080
1334×750
1136×640
1920×1080
比例
19.5:9
18:9
18:9
18:9
16:9
16:9
16:9
16:9
16:9
16:9
ppi
326
458
458
458
401
401
401
401
401
401
尺寸
6.1
6.5
5.8
5.8
5.5
4.7
5.5
4.7
4.0
5.5
机型代码
iPhone11,8
iPhone11,4 iPhone11,6
iPhone11,2
iPhone10,3 iPhone10,6
iPhone10,2 iPhone10,5
iPhone10,1 iPhone10,4
iPhone9,2 iPhone9,4
iPhone9,1 iPhone9,3
iPhone8,4
iPhone8,1
发布时间
2018.09
2018.09
2018.09
2017.09
2017.09
2017.09
2016.09
2016.09
2016.03
2015.09
机型
iPhone 6s
iPhone 6 plus
iPhone 6
iPhone 5s
像素
1334×750
1920×1080
1334×750
1136×640
比例
16:9
16:9
16:9
16:9
ppi
401
401
401
326
尺寸
4.7
5.5
4.7
4.0
机型代码
iPhone8,2
iPhone7,1
iPhone7,2
iPhone6,1 iPhone6,2
发布时间
2015.09
2014.09
2014.09
2013.09
iPad:
机型
iPad 5
iPad 4
iPad 3
iPad 2
iPad
逻辑分辨率
1024×768
1024×768
1024×768
1024×768
1024×768
Scale
@2x
@2x
@2x
@1x
@1x
物理分辨率
2048×1536
2048×1536
2048×1536
1024×768
1024×768
比例
4:3
4:3
4:3
4:3
4:3
ppi
264
264
264
163
163
尺寸
9.7
9.7
9.7
9.7
9.7
型号代码
iPad6,11 iPad6,12
iPad3,4 iPad3,5 iPad3,6
iPad3,1 iPad3,2 iPad3,3
iPad2,1 iPad2,2 iPad2,3 iPad2,4
iPad1,1
发布时间
2017.03
2012.10
2012.03
2011.03
2010.01
iPad Aird Air::
机型
iPad Air
iPad Air 2
逻辑分辨率
1024×768
1024×768
Scale
@2x
@2x
物理分辨率
2048×1536
2048×1536
比例
4:3
4:3
ppi
264
264
尺寸
9.7
9.7
型号代码
iPad4,1 iPad4,2 iPad4,3
iPad5,3 iPad5,4
发布时间
2013.10
2014.10
iPad Prod Pro:
机型
iPad Pro 10.5
iPad Pro 12.9-inch 2
iPad Pro 9.7-inch
iPad Pro 12.9-inch
逻辑分辨率
1112×834
1366×1024
1024×768
1366×1024
Scale
@2x
@2x
@2x
@2x
物理分辨率
2224×1668
2732×2048
2048×1536
2732×2048
比例
4:3
4:3
4:3
4:3
ppi
264
264
264
264
尺寸
10.5
12.9
9.7
12.9
型号代码
iPad7,3 iPad7,4
iPad7,1 iPad7,2
iPad6,3 iPad6,4
iPad6,7 iPad6,8
发布时间
2017
2017
2016.03
2015.09
iPad Mini:
机型
iPad mini 4
iPad mini 3
iPad mini 2
iPad mini
逻辑分辨率
1024×768
1024×768
1024×768
1024×768
Scale
@2X
@2X
@2X
@1X
物理分辨率
2048×1536
2048×1536
2048×1536
1024×768
比例
4:3
4:3
4:3
4:3
ppi
326
326
326
163
尺寸
7.9
7.9
7.9
7.9
型号代码
iPad5,1 iPad5,2 iPad4,9
iPad4,7 iPad4,8 iPad4,9
iPad4,5 iPad4,6 iPad4,7
iPad2,5 iPad2,6 iPad2,7
发布时间
2015.09
2014.10
2013.10
2012.10
Samulitor:
机型
Simulator
型号代码
i386、x86_64Unknown机型型号代码