判断 手机型号

if ([platform isEqualToString:@"iPhone1,1"]) return @"iPhone 2G (A1203)";

if ([platform isEqualToString:@"iPhone1,2"]) return @"iPhone 3G (A1241/A1324)";

if ([platform isEqualToString:@"iPhone2,1"]) return @"iPhone 3GS (A1303/A1325)";

if ([platform isEqualToString:@"iPhone3,1"]) return @"iPhone 4 (A1332)";

if ([platform isEqualToString:@"iPhone3,2"]) return @"iPhone 4 (A1332)";

if ([platform isEqualToString:@"iPhone3,3"]) return @"iPhone 4 (A1349)";

if ([platform isEqualToString:@"iPhone4,1"]) return @"iPhone 4S (A1387/A1431)";

if ([platform isEqualToString:@"iPhone5,1"]) return @"iPhone 5 (A1428)";

if ([platform isEqualToString:@"iPhone5,2"]) return @"iPhone 5 (A1429/A1442)";

if ([platform isEqualToString:@"iPhone5,3"]) return @"iPhone 5c (A1456/A1532)";

if ([platform isEqualToString:@"iPhone5,4"]) return @"iPhone 5c (A1507/A1516/A1526/A1529)";

if ([platform isEqualToString:@"iPhone6,1"]) return @"iPhone 5s (A1453/A1533)";

if ([platform isEqualToString:@"iPhone6,2"]) return @"iPhone 5s (A1457/A1518/A1528/A1530)";

if ([platform isEqualToString:@"iPhone7,1"]) return @"iPhone 6 Plus (A1522/A1524)";

if ([platform isEqualToString:@"iPhone7,2"]) return @"iPhone 6 (A1549/A1586)"; 

5se       84

if ([platform isEqualToString:@"iPhone9,1"]) return @"iPhone 7 (A1549/A1586)";


if ([platform isEqualToString:@"iPhone9,2"]) return @"iPhone 7 Plus (A1549/A1586)";

你可能感兴趣的:(判断 手机型号)