摘要: 获取iOS设备的型号 需要#import "sys/utsname.h" structutsname systemInfo; uname(&systemInfo); NSString*deviceString = [NSStringstringWithCString:systemInfo.machi 阅读全文
posted @ 2016-11-17 16:06 A码农151 阅读(171) 评论(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 阅读(150) 评论(0) 推荐(0) 编辑