最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

iOS设备机型判断大全更新到iPhoneSE2022

IT圈 admin 28浏览 0评论

2024年3月13日发(作者:紫清佳)

if ([platform isEqualToString:@"iPad4,7"]

|| [platform isEqualToString:@"iPad4,8"]

|| [platform isEqualToString:@"iPad4,9"]) return @"iPad Mini 3";

if ([platform isEqualToString:@"iPad5,1"]

|| [platform isEqualToString:@"iPad5,2"]) return @"iPad Mini 4";

if ([platform isEqualToString:@"iPad11,1"]

|| [platform isEqualToString:@"iPad11,2"]) return @"iPad mini (5th generation)";

if ([platform isEqualToString:@"iPad14,1"]

|| [platform isEqualToString:@"iPad14,2"]) return @"iPad mini (6th generation)";

//TODO:iPad Pro

if ([platform isEqualToString:@"iPad6,7"]

|| [platform isEqualToString:@"iPad6,8"]) return @"iPad Pro 12.9";

if ([platform isEqualToString:@"iPad6,3"]

|| [platform isEqualToString:@"iPad6,4"]) return @"iPad Pro 9.7";

if ([platform isEqualToString:@"iPad7,1"]) return @"iPad Pro 12.9 inch 2nd gen (WiFi)";

if ([platform isEqualToString:@"iPad7,2"]) return @"iPad Pro 12.9 inch 2nd gen (Cellular)";

if ([platform isEqualToString:@"iPad7,3"]) return @"iPad Pro 10.5 inch (WiFi)";

if ([platform isEqualToString:@"iPad7,4"]) return @"iPad Pro 10.5 inch (Cellular)";

if ([platform isEqualToString:@"iPad8,1"]

|| [platform isEqualToString:@"iPad8,2"]

|| [platform isEqualToString:@"iPad8,3"]

|| [platform isEqualToString:@"iPad8,4"]) return @"iPad Pro (11-inch)";

if ([platform isEqualToString:@"iPad8,5"]

|| [platform isEqualToString:@"iPad8,6"]

|| [platform isEqualToString:@"iPad8,7"]

|| [platform isEqualToString:@"iPad8,8"]) return @"iPad Pro (12.9-inch) (3rd generation)";

if ([platform isEqualToString:@"iPad8,9"]

|| [platform isEqualToString:@"iPad8,10"]) return @"iPad Pro (11-inch) (2nd generation)";

if ([platform isEqualToString:@"iPad8,11"]

|| [platform isEqualToString:@"iPad8,12"]) return @"iPad Pro (12.9-inch) (4th generation)";

if ([platform isEqualToString:@"iPad13,4"]

|| [platform isEqualToString:@"iPad13,5"]

|| [platform isEqualToString:@"iPad13,6"]

|| [platform isEqualToString:@"iPad13,7"]) return @"iPad Pro (11-inch) (3rd generation)";

if ([platform isEqualToString:@"iPad13,8"]

|| [platform isEqualToString:@"iPad13,9"]

|| [platform isEqualToString:@"iPad13,10"]

|| [platform isEqualToString:@"iPad13,11"]) return @"iPad Pro (12.9-inch) (5th generation)";

//TODO:模拟器

if ([platform isEqualToString:@"i386"]) return @"Simulator";

if ([platform isEqualToString:@"x86_64"]) return @"Simulator";

return platform;

}

2024年3月13日发(作者:紫清佳)

if ([platform isEqualToString:@"iPad4,7"]

|| [platform isEqualToString:@"iPad4,8"]

|| [platform isEqualToString:@"iPad4,9"]) return @"iPad Mini 3";

if ([platform isEqualToString:@"iPad5,1"]

|| [platform isEqualToString:@"iPad5,2"]) return @"iPad Mini 4";

if ([platform isEqualToString:@"iPad11,1"]

|| [platform isEqualToString:@"iPad11,2"]) return @"iPad mini (5th generation)";

if ([platform isEqualToString:@"iPad14,1"]

|| [platform isEqualToString:@"iPad14,2"]) return @"iPad mini (6th generation)";

//TODO:iPad Pro

if ([platform isEqualToString:@"iPad6,7"]

|| [platform isEqualToString:@"iPad6,8"]) return @"iPad Pro 12.9";

if ([platform isEqualToString:@"iPad6,3"]

|| [platform isEqualToString:@"iPad6,4"]) return @"iPad Pro 9.7";

if ([platform isEqualToString:@"iPad7,1"]) return @"iPad Pro 12.9 inch 2nd gen (WiFi)";

if ([platform isEqualToString:@"iPad7,2"]) return @"iPad Pro 12.9 inch 2nd gen (Cellular)";

if ([platform isEqualToString:@"iPad7,3"]) return @"iPad Pro 10.5 inch (WiFi)";

if ([platform isEqualToString:@"iPad7,4"]) return @"iPad Pro 10.5 inch (Cellular)";

if ([platform isEqualToString:@"iPad8,1"]

|| [platform isEqualToString:@"iPad8,2"]

|| [platform isEqualToString:@"iPad8,3"]

|| [platform isEqualToString:@"iPad8,4"]) return @"iPad Pro (11-inch)";

if ([platform isEqualToString:@"iPad8,5"]

|| [platform isEqualToString:@"iPad8,6"]

|| [platform isEqualToString:@"iPad8,7"]

|| [platform isEqualToString:@"iPad8,8"]) return @"iPad Pro (12.9-inch) (3rd generation)";

if ([platform isEqualToString:@"iPad8,9"]

|| [platform isEqualToString:@"iPad8,10"]) return @"iPad Pro (11-inch) (2nd generation)";

if ([platform isEqualToString:@"iPad8,11"]

|| [platform isEqualToString:@"iPad8,12"]) return @"iPad Pro (12.9-inch) (4th generation)";

if ([platform isEqualToString:@"iPad13,4"]

|| [platform isEqualToString:@"iPad13,5"]

|| [platform isEqualToString:@"iPad13,6"]

|| [platform isEqualToString:@"iPad13,7"]) return @"iPad Pro (11-inch) (3rd generation)";

if ([platform isEqualToString:@"iPad13,8"]

|| [platform isEqualToString:@"iPad13,9"]

|| [platform isEqualToString:@"iPad13,10"]

|| [platform isEqualToString:@"iPad13,11"]) return @"iPad Pro (12.9-inch) (5th generation)";

//TODO:模拟器

if ([platform isEqualToString:@"i386"]) return @"Simulator";

if ([platform isEqualToString:@"x86_64"]) return @"Simulator";

return platform;

}

发布评论

评论列表 (0)

  1. 暂无评论