UIDevice 帮助我们全方位的了解所使用的设备的相关信息
//手机名称
NSString *userPhoneNameStr = [[UIDevice currentDevice] name];
//手机系统名称
NSString *deviceNameStr = [[UIDevice currentDevice] systemName];
//手机系统版本号
NSString *systemVersionStr = [[UIDevice currentDevice] systemVersion];
//类型是模拟器还是真机
NSString *phoneModelStr = [[UIDevice currentDevice] model];
//设备唯一标示码
NSString *phoneUDIDStr = [[UIDevice currentDevice] model];
网友评论