Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *udid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
- NSString *DeviceName =[[UIDevice currentDevice] name];
- NSString *model =[[UIDevice currentDevice] model];
- NSString *systemVersion =[[UIDevice currentDevice] systemVersion];
- [[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];
- float batteryLevel = [[UIDevice currentDevice] batteryLevel];
- NSLog(@"UDID is %@",udid);
- NSLog(@"Device Name is %@",DeviceName);
- NSLog(@"Model is %@",model);
- NSLog(@"OS version%@",systemVersion);
- NSLog(@"Battery Level: %f",batteryLevel);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement