首页 > 代码库 > [UIDevice currentDevice]

[UIDevice currentDevice]

获取iphone的系统信息使用[UIDevice currentDevice],信息如下:


[[UIDevice currentDevice] systemName]:系统名称,如iPhone OS

[[UIDevice currentDevice] systemVersion]:系统版本,如iOS 8.0

[[UIDevice currentDevice] model]:The model of the device,如iPhone或者iPod touch

[[UIDevice currentDevice] uniqueIdentifier]:设备的惟一标识号,deviceID

[[UIDevice currentDevice] name]:设备的名称,如 张三的iPhone

[[UIDevice currentDevice] localizedModel]:The model of the device as a localized string,类似model

[UIDevice currentDevice].batteryState  设备的电池状态

[UIDevice currentDevice].batteryLevel  设备的电池充电状况

[UIDevice currentDevice].userInterfaceIdiom  用户当前使用的设备,与model类似


[UIDevice currentDevice]