摘要:
获取iOS设备的型号 需要#import "sys/utsname.h" structutsname systemInfo; uname(&systemInfo); NSString*deviceString = [NSStringstringWithCString:systemInfo.machi 阅读全文
posted @ 2016-11-17 16:06
A码农151
阅读(183)
评论(0)
推荐(0)
摘要:
三种常用的办法获取iOS设备的型号: 1. [UIDevice currentDevice].model (推荐); 2. uname(struct utsname *name) ,使用此函数需要#include ; 3.sysctlbyname(const char *name, void *ol 阅读全文
posted @ 2016-11-17 10:47
A码农151
阅读(160)
评论(0)
推荐(0)
浙公网安备 33010602011771号