Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 489
Trung Avatar asked Sep 17 '13 15:09

Trung


1 Answers

  • 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)";
like image 148
Trung Avatar answered Oct 24 '22 14:10

Trung