What is platform string for iPhone 5S & 5C?

前端 未结 1 1802
悲&欢浪女
悲&欢浪女 2020-12-14 10:55

I know that someone was able to dig out iphone6,1 platform string from IOS 7 code. However, I don\'t know what it maps to iPhone 5S or 5C.

If anyone has early acces

相关标签:
1条回答
  • 2020-12-14 11:36
    • iPhone6,1 = iPhone 5S GSM
    • iPhone6,2 = iPhone 5S Global
    • iPhone5,3 = iPhone 5C GSM
    • iPhone5,4 = iPhone 5C Global

    Code:

    if ([platform hasPrefix:@"iPhone5,3"])            return @"iPhone 5C (GSM)";
    if ([platform hasPrefix:@"iPhone5,4"])            return @"iPhone 5C (Global)";
    if ([platform hasPrefix:@"iPhone6,1"])            return @"iPhone 5S (GSM)";
    if ([platform hasPrefix:@"iPhone6,2"])            return @"iPhone 5S (Global)";
    
    0 讨论(0)
提交回复
热议问题