UIDevice * device=[UIDevice currentDevice];
NSLog(@"name:%@",device.name);
NSLog(@"model:%@",device.model);
NSLog(@"localizedModel:%@",device.localizedModel);
NSLog(@"systemName:%@",device.systemName);
NSLog(@"systemVersion:%@",device.systemVersion);
device.batteryMonitoringEnabled=YES;//显示电量
NSLog(@"当前电量电池容量:%1.f%%",device.batteryLevel * 100);
NSLog(@"model:%@",device.model);
device.proximityMonitoringEnabled=YES;//接电话时屏幕关闭