永利集团304官网登陆iPhone6s买前须知,获取手机型

2020-01-25 20:50 来源:未知

三星6s&6sPlus发售在即,有未有心动呢?固然它是索爱,是最佳用的无绳电话机之豆蔻梢头,但大家有个别还是要对它进行后生可畏番打探不是,万一不顺心呢?Samsung6s买前须知,你要通晓的六件事情。

//手提式有线电话机型号

//记得导入#import "sys/utsname.h"

- (NSString*)deviceVersion

永利集团304官网登陆,{

structutsname systemInfo;

uname(&systemInfo);

NSString*deviceString = [NSStringstringWithCString:systemInfo.machineencoding:NSUTF8StringEncoding];

//iPhone

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

if([deviceString isEqualToString:@"iPhone1,2"])return@"iPhone 3G";

if([deviceString isEqualToString:@"iPhone2,1"])return@"iPhone 3GS";

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

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

if([deviceString isEqualToString:@"iPhone4,1"])return@"iPhone 4S";

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

if([deviceString isEqualToString:@"iPhone5,2"])return@"iPhone 5";

if([deviceString isEqualToString:@"iPhone5,3"])return@"iPhone 5C";

if([deviceString isEqualToString:@"iPhone5,4"])return@"iPhone 5C";

if([deviceString isEqualToString:@"iPhone6,1"])return@"iPhone 5S";

if([deviceString isEqualToString:@"iPhone6,2"])return@"iPhone 5S";

if([deviceString isEqualToString:@"iPhone7,1"])return@"iPhone 6 Plus";

if([deviceString isEqualToString:@"iPhone7,2"])return@"iPhone 6";

if([deviceString isEqualToString:@"iPhone8,1"])return@"iPhone 6s";

if([deviceString isEqualToString:@"iPhone8,2"])return@"iPhone 6s Plus";

if([deviceString isEqualToString:@"iPhone9,1"] || [deviceString isEqualToString:@"iPhone9,3"])return@"iPhone 7";

if([deviceString isEqualToString:@"iPhone9,2"] || [deviceString isEqualToString:@"iPhone9,4"])return@"iPhone 7 Plus";

if([deviceString isEqualToString:@"iPhone10,1"] || [deviceString isEqualToString:@"iPhone10,4"])return@"iPhone 8";

if([deviceString isEqualToString:@"iPhone10,2"] || [deviceString isEqualToString:@"iPhone10,5"])return@"iPhone 8 Plus";

if([deviceString isEqualToString:@"iPhone10,3"] || [deviceString isEqualToString:@"iPhone10,6"])return@"iPhone X";

returndeviceString;

}

TAG标签:
版权声明:本文由永利集团304手机版发布于永利集团304官网登陆,转载请注明出处:永利集团304官网登陆iPhone6s买前须知,获取手机型