// 这个方法后面会列出来NSString*deviceName = [selfgetDeviceName];
NSLog(@"设备型号-->%@", deviceName);
NSString*iPhoneName = [UIDevicecurrentDevice].name;
NSLog(@"iPhone名称-->%@", iPhoneName);
NSString*appVerion = [[[NSBundlemainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString”];
NSLog(@"app版本号-->%@", appVerion);
CGFloatbatteryLevel = [[UIDevicecurrentDevice] batteryLevel];
NSLog(@"电池电量-->%f", batteryLevel);
NSString*localizedModel = [UIDevicecurrentDevice].localizedModel;
NSLog(@"localizedModel-->%@", localizedModel);
NSString*systemName = [UIDevicecurrentDevice].systemName;
NSLog(@"当前系统名称-->%@", systemName);
NSString*systemVersion = [UIDevicecurrentDevice].systemVersion;
NSLog(@"当前系统版本号-->%@", systemVersion);
structutsname systemInfo; uname(&systemInfo);
NSString*device_model = [NSStringstringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
NSLog(@"device_model-->%@", device_model);
// 这个方法后面会单独列出NSString*macAddress = [selfgetMacAddress];
NSLog(@"macAddress-->%@", macAddress);// 这个方法后面会单独列出
NSString*deviceIP = [selfgetDeviceIPAddresses];
NSLog(@"deviceIP-->%@", deviceIP);