iOS开发,获取手机设备号
UIDevice *device = [UIDevice currentDevice];
NSString *deviceUID = [[NSString alloc] initWithString:device.identifierForVendor.UUIDString];
NSLog(@"%@",deviceUID);
NSString *strmode = [UIDevice currentDevice].model;
NSLog(@"%@",strmode);
NSString *strname = [UIDevice currentDevice].name;
NSLog(@"%@",strname);
NSString *strlocalizedModel = [UIDevice currentDevice].localizedModel;
NSLog(@"%@",strlocalizedModel);
NSString *strsystemName = [UIDevice currentDevice].systemName;
NSLog(@"%@",strsystemName);
NSString *strsystemVersion = [UIDevice currentDevice].systemVersion;
NSLog(@"%@",strsystemVersion);
NSUUID *stridentifierForVendor =[UIDevice currentDevice].identifierForVendor;
NSLog(@"%@",stridentifierForVendor);
UIDeviceOrientation strorientation = [UIDevice currentDevice].orientation;
NSLog(@"%ld",(long)strorientation);
BOOL zbatteryMonitoringEnabled = [UIDevice currentDevice].batteryMonitoringEnabled;
NSLog(@"%hhd",zbatteryMonitoringEnabled);
float abatteryLevel = [UIDevice currentDevice].batteryLevel;
NSLog(@"%f",abatteryLevel);
技术支持-解决方案