您的位置:首页 > 移动开发 > IOS开发

获取iPhone一些相关信息

2017-02-21 11:01 363 查看
获取iphone的系统信息使用[UIDevice currentDevice],信息如下:

[[UIDevice currentDevice] systemName]:系统名称,如iPhone OS

[[UIDevice currentDevice] systemVersion]:系统版本,如4.2.1

[[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

[[NSBundle mainBundle] infoDictionary] 包含了应用的一些进本信息,如版本号,idk,app名称等一些信息
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios 手机信息