[UIDevice currentDevice]
2024-08-23 21:12:54
获取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类似
最新文章
- 推荐13款javascript模板引擎
- JAVA读取TXT文件、新建TXT文件、写入TXT文件
- Knockoutjs 实践入门 (1) 属性绑定
- [Android]在代码混淆中关闭 Log
- Android布局
- [windows]禁止指定用户使用远程桌面服务登录
- uva----11729 Commando war (突击战争)
- HDU 2295 Radar dancing links 重复覆盖
- ES5中数组新增的方法说明
- python3.4控制用户输入与输出
- JavaScript事件处理
- cocos2d_android 瞬间动作
- NSCondition用法
- Delphi基础-数据类型
- Android高级控件(四)——VideoView 实现引导页播放视频欢迎效果,超级简单却十分的炫酷
- RTMPdump(libRTMP) 源代码分析 9: 接收消息(Message)(接收视音频数据)
- CentOS 安装 ceph 单机版
- 解决 AutoMapper ProjectTo 不起作用的问题
- 算法:输入一个链表,输出该链表中倒数第k个结点。
- 解决Windows下Tomcat控制台中文乱码
热门文章
- luogu2764 最小路径覆盖问题
- web安全测试---AppScan扫描工具(转)
- 【转】基于 Apache 在本地配置多个虚拟主机
- Python文件处理、函数的基本应用
- 顺序表ans链性表
- 【转】Unicode utf8等编码类型的原理
- Welcome-to-Swift-04集合类型(Collection Types)
- [LOJ#2255][BZOJ5017][Snoi2017]炸弹
- POJ3349 Snowflake Snow Snowflakes 【哈希表】
- poj3728The merchant