标签:
-(void)getSystemInfo{
size_t size;
sysctlbyname("hw.machine", NULL, &size, NULL, 0);
char *machine = (char*)malloc(size);
sysctlbyname("hw.machine", machine, &size, NULL, 0);
NSString *platform = [NSString stringWithCString:machine encoding:NSUTF8StringEncoding];
machine = nil;
NSString *strSysName = [[UIDevice currentDevice] systemVersion];
[AppManager setUserDefaultsValue:platform key:@"phoneType"];
[AppManager setUserDefaultsValue:strSysName key:@"phoneSystem"];
[AppManager setUserDefaultsValue:g_versionSNO key:@"version"];
platform = nil;
strSysName = nil;
}
标签:
原文地址:http://blog.csdn.net/u010742414/article/details/47108521