iphone开发-UIDevice用法汇总
2012-06-24 20:25
417 查看
如何取到当前设备的硬件信息和系统信息呢?利用UIDevice就可以。
//软件信息
[[UIDevice currentDevice] systemName];//系统名字
[[UIDevice currentDevice] systemVersion];//系统版本号
[[UIDevice currentDevice] uniqueIdentifier];//
[[UIDevice currentDevice] model];
[[UIDevice currentDevice] name];
// 硬件信息
[UIDevice platform];//平台
[UIDevice cpuFrequency]];//cpu信息
UIDevice busFrequency]];//总线
[UIDevice totalMemory]];//总内存
UIDevice userMemory]];//已经使用的内存
//软件信息
[[UIDevice currentDevice] systemName];//系统名字
[[UIDevice currentDevice] systemVersion];//系统版本号
[[UIDevice currentDevice] uniqueIdentifier];//
[[UIDevice currentDevice] model];
[[UIDevice currentDevice] name];
// 硬件信息
[UIDevice platform];//平台
[UIDevice cpuFrequency]];//cpu信息
UIDevice busFrequency]];//总线
[UIDevice totalMemory]];//总内存
UIDevice userMemory]];//已经使用的内存
相关文章推荐
- 有关iPhone UIDevice UIApplication的一些常见用法
- 有关iPhone UIDevice UIApplication的一些常见用法
- 有关iPhone UIDevice UIApplication的一些常见用法
- 有关iPhone UIDevice UIApplication的一些常见用法
- iphone开发, UILable控件的用法汇总(转)
- 有关iPhone UIDevice UIApplication的一些常见用法
- iphone开发 UIDevice获取设备信息
- iPhone开发资源汇总
- iCS DN博文精选:iPhone系列开发博客资源汇总
- Android界面效果UI开发资料汇总
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法 (实例)
- iPhone开发中我所遭遇的 各种协议之<UIApplicationDelegate> ------------ 1
- UIDeviceOrientation和UIInterfaceOrientation屏幕旋转的用法
- (转) iphone开发资源汇总
- 【汇总】涉及iOS&iPhone开发相关文章汇总
- iOS开发-UI控件:UILabel用法详解
- 【iPhone开发】ios客户端icon和loading页UI分辨率需求
- 基于jquery开发的UI框架汇总
- 软件开发全套视频教程汇总(javaSE,javaEE,linux,android开发,C# ,web前端,大数据云计算,数据挖掘,web前端,php开发,UI设计,C++开发,3D视频)
- 移动H5开发入门知识,CSS的单位汇总与用法