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

℡╲_俬逩灬. 提交于 2019-11-30 06:37: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 access to iPhone 5S/5C, please post platform string for everyone.

For more info on platform string, see these links theiphonewiki, stackoverflow and stackoverflow


回答1:


  • 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)";


来源:https://stackoverflow.com/questions/18854244/what-is-platform-string-for-iphone-5s-5c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!