iOS获取当前系统的相关信息
2011-08-26 14:41
429 查看
NSLog([[UIDevice currentDevice] name]); // Name of the phone as named by user
NSLog([[UIDevice currentDevice] uniqueIdentifier]); // A GUID like string
NSLog([[UIDevice currentDevice] systemName]); // "iPhone OS"
NSLog([[UIDevice currentDevice] systemVersion]); // "2.2.1"
NSLog([[UIDevice currentDevice] model]); // "iPhone" on both devices
NSLog([[UIDevice currentDevice] localizedModel]); // "iPhone" on both devices
float version = [[[UIDevice currentDevice] systemVersion] floatValue]; //获取版本号
if (version >= sdk number)
{
}
NSLog([[UIDevice currentDevice] uniqueIdentifier]); // A GUID like string
NSLog([[UIDevice currentDevice] systemName]); // "iPhone OS"
NSLog([[UIDevice currentDevice] systemVersion]); // "2.2.1"
NSLog([[UIDevice currentDevice] model]); // "iPhone" on both devices
NSLog([[UIDevice currentDevice] localizedModel]); // "iPhone" on both devices
float version = [[[UIDevice currentDevice] systemVersion] floatValue]; //获取版本号
if (version >= sdk number)
{
}
相关文章推荐
- iOS获取当前系统的相关信息和在不同的IOS上检测
- iOS获取当前系统的相关信息和在不同的IOS上检测
- iOS获取当前系统的相关信息 - - 博客频道 - CSDN.NET (3)
- iOS - (利用/调用系统定位获取当前经纬度与地理信息)
- iOS - (利用/调用系统定位获取当前经纬度与地理信息)
- iOS 获取当前设备具体型号(当前支持到iPhone7/iPhone7P )、系统版本、电量、序列号、设备名称、应用相关信息获取等
- 获取iOS系统的相关信息
- ios开发之 -- 调用系统定位获取当前经纬度与地理信息
- 获取当前ios系统的版本信息
- ios开发之 -- 调用系统定位获取当前经纬度与地理信息
- iOS开发小技巧 获取当前设备/应用程序相关信息
- IOS获取当前App的基本信息
- 获取当前java虚拟系统属性信息
- iOS 系统地图 获取当前城市
- asp.net获取当前网址url相关信息总结
- iOS开发之获取当前系统的语言环境
- Java获取系统信息(cpu,内存,硬盘,进程等)的相关方法 .
- ios开发-获取手机相关信息
- iOS获取屏幕宽高、设备型号、系统版本信息
- iOS 设备获取设备相关信息