摘要:
获取iOS设备的型号 需要#import "sys/utsname.h" structutsname systemInfo; uname(&systemInfo); NSString*deviceString = [NSStringstringWithCString:systemInfo.machi 阅读全文
摘要:
三种常用的办法获取iOS设备的型号: 1. [UIDevice currentDevice].model (推荐); 2. uname(struct utsname *name) ,使用此函数需要#include ; 3.sysctlbyname(const char *name, void *ol 阅读全文