美文网首页
iOS开发笔记-46:跳转系统设置(自己app的设置)

iOS开发笔记-46:跳转系统设置(自己app的设置)

作者: 原味蛋炒饭 | 来源:发表于2017-06-19 10:21 被阅读38次

17.06.19:亲测可用

//NSString * urlString = @"App-Prefs:root=Privacy&path=LOCATION";
//如果只是跳转自己的app设置
NSString * urlString = @"App-Prefs:root=你自己app的bunbleId";
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:urlString]]) {
                                             if (IS_IOS10) {
                                                 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
                                             } else {
                                                 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
                                             }
                                         }

电池电量 Prefs:root=BATTERY_USAGE
通用设置 Prefs:root=General
存储空间 Prefs:root=General&path=STORAGE_ICLOUD_USAGE/DEVICE_STORAGE
蜂窝数据 Prefs:root=MOBILE_DATA_SETTINGS_ID
Wi-Fi 设置 Prefs:root=WIFI
蓝牙设置 Prefs:root=Bluetooth
定位设置 Prefs:root=Privacy&path=LOCATION
辅助功能 Prefs:root=General&path=ACCESSIBILITY
关于手机 Prefs:root=General&path=About
键盘设置 Prefs:root=General&path=Keyboard
显示设置 Prefs:root=DISPLAY
声音设置 Prefs:root=Sounds
App Store 设置 Prefs:root=STORE
墙纸设置 Prefs:root=Wallpaper
打开电话 Mobilephone://
世界时钟 Clock-worldclock://
闹钟 Clock-alarm://
秒表 Clock-stopwatch://
倒计时 Clock-timer://
打开相册 Photos://

相关文章

网友评论

      本文标题:iOS开发笔记-46:跳转系统设置(自己app的设置)

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