Advertisement
julong

xcode#GET USER DATA

Mar 11th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     NSString *udid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
  3.     NSString *DeviceName =[[UIDevice currentDevice] name];
  4.     NSString *model =[[UIDevice currentDevice]  model];
  5.     NSString *systemVersion =[[UIDevice currentDevice]  systemVersion];
  6.     [[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];
  7.     float batteryLevel = [[UIDevice currentDevice] batteryLevel];
  8.  
  9.  
  10.     NSLog(@"UDID is %@",udid);
  11.     NSLog(@"Device Name is %@",DeviceName);
  12.     NSLog(@"Model is %@",model);
  13.     NSLog(@"OS version%@",systemVersion);
  14.     NSLog(@"Battery Level: %f",batteryLevel);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement