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 access to iPhone 5S/5C, please post platform string for everyone.
For more info on platform string, see these links theiphonewiki, stackoverflow and stackoverflow
- 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)";