美文网首页
IOS --- 获取系统信息

IOS --- 获取系统信息

作者: 懒眉 | 来源:发表于2016-11-07 10:28 被阅读36次

1 . 获取项目名称

 [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey]

2 . 获取版本号

[[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey]

3 . 获取设备名称

[[UIDevice currentDevice] model]

4 . 获取系统版本

[[UIDevice currentDevice] systemVersion],

5 . 获取屏幕分辨率

[[UIScreen mainScreen] scale]
[[UIScreen main] scale] == 1  代表320 x 480 的分辨率
[[UIScreen main] scale] == 2 代表640 x 960 的分辨率
[[UIScreen main] scale] == 3 代表1242 x 2208 的分辨率

6 . 跳转设置

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
跳转特定设置:
例如:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];

About — prefs:root=General&path=About  
Accessibility — prefs:root=General&path=ACCESSIBILITY  
AirplaneModeOn— prefs:root=AIRPLANE_MODE  
Auto-Lock — prefs:root=General&path=AUTOLOCK  
Brightness — prefs:root=Brightness  
Bluetooth — prefs:root=General&path=Bluetooth
Date& Time — prefs:root=General&path=DATE_AND_TIME  
FaceTime — prefs:root=FACETIME
General— prefs:root=General
Keyboard — prefs:root=General&path=Keyboard  
iCloud — prefs:root=CASTLE  iCloud 
Storage & Backup — prefs:root=CASTLE&path=STORAGE_AND_BACKUP  
International — prefs:root=General&path=INTERNATIONAL  
Location Services — prefs:root=LOCATION_SERVICES  
Music — prefs:root=MUSIC  
Music Equalizer — prefs:root=MUSIC&path=EQ  
Music VolumeLimit— prefs:root=MUSIC&path=VolumeLimit  
Network — prefs:root=General&path=Network  
Nike + iPod — prefs:root=NIKE_PLUS_IPOD  
Notes — prefs:root=NOTES  
Notification — prefs:root=NOTIFICATIONS_ID  
Phone — prefs:root=Phone  
Photos — prefs:root=Photos  
Profile — prefs:root=General&path=ManagedConfigurationList  
Reset — prefs:root=General&path=Reset  
Safari — prefs:root=Safari  Siri — prefs:root=General&path=Assistant  
Sounds — prefs:root=Sounds  
SoftwareUpdate— prefs:root=General&path=SOFTWARE_UPDATE_LINK  
Store — prefs:root=STORE  
Twitter — prefs:root=TWITTER  
Usage — prefs:root=General&path=USAGE  
VPN — prefs:root=General&path=Network/VPN  
Wallpaper — prefs:root=Wallpaper  
Wi-Fi — prefs:root=WIFI
Setting—prefs:root=INTERNET_TETHERING

相关文章

  • iOS获取系统基本信息

    iOS获取硬件系统信息 一.获取系统相关信息 1.获取设备名称 3.获取APP版本 4.获取设备ID 5.返回当前...

  • 如何获取ios系统信息

    如何获取ios系统信息 NSString *deviceID = [[UIDevice currentDevice...

  • iOS获取系统信息

    NSString *deviceID = [[UIDevice currentDevice] uniqueIden...

  • iOS获取系统信息

    获取app Version NSDictionary *infoDic = [[NSBundle mainBun...

  • iOS 获取系统信息

    iOS获取系统信息 当前应用软件版本 比如:1.0.1 当前应用版本号码 (编译版本号) 获取应用信息 当前应用名...

  • iOS获取系统信息

    iOS获取系统信息 获取版本号 获取手机序列号 获取手机型号 获取手机设备名称 获取手机别名 获取应用信息 当前应...

  • IOS --- 获取系统信息

    1 . 获取项目名称 2 . 获取版本号 3 . 获取设备名称 4 . 获取系统版本 5 . 获取屏幕分辨率 6 ...

  • 获取ios系统信息

    1.获取手机系统版本:NSString* phoneVersion = [[UIDevice currentDev...

  • ios获取系统信息

    1.获取App的名称,"CFBundleDisplayName"为info.plist表示名称的属性关键字 2.获...

  • 【开发技巧】软件信息获取和手机信息

    史上最全的iOS各种设备信息获取总结 软件信息 1,获取软件版本号 手机信息 1.手机系统版本 2,获取UUID ...

网友评论

      本文标题:IOS --- 获取系统信息

      本文链接:https://www.haomeiwen.com/subject/qbauuttx.html