TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Aug 2017 |
Maintained by dwanghello.
使用DWINFO可以获取到设备及当前App的简要信息
pod 'DWINFO'
当前设备UUID
NSLog(@"%@", [DWDeviceINFO currentDeviceUUID]);
当前设备名称
NSLog(@"%@", [DWDeviceINFO currentDeviceName]);
当前设备型号
NSLog(@"%@", [DWDeviceINFO currentDeviceModelName]);
当前设备系统版本
NSLog(@"%@", [DWDeviceINFO currentDeviceSystemVersion]);
当前设备电量
NSLog(@"%f", [DWDeviceINFO currentDeviceBatteryLevel]);
当前设备连接的WIFI名称
NSLog(@"%@", [DWDeviceINFO currentDeviceConcatenWIFIName]);
当前设备连接的网络状态
NSLog(@"%@", [DWDeviceINFO currentDeviceConcatenNetType]);
当前设备运营商
NSLog(@"%@", [DWDeviceINFO currentDeviceOperator]);
当前App名称
NSLog(@"%@", [DWAppINFO currentAppName]);
当前App版本
NSLog(@"%@", [DWAppINFO currentAppVersion]);
当前App编译版本
NSLog(@"%@", [DWAppINFO currentAppBuildVersion]);
当前App唯一标示
NSLog(@"%@", [DWAppINFO currentAppIdentifier]);