IOS 设备
2019獨角獸企業重金招聘Python工程師標準>>>
? ? 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;//接電話時屏幕關閉
轉載于:https://my.oschina.net/u/2483781/blog/597847
總結
- 上一篇: UVA 10917 Walk Throu
- 下一篇: Linux学习笔记4-三种不同类型的软件