星空网 > 软件开发 > 操作系统

UI进阶 跳转系统设置相关界面的方法

跳转系统设置界面,例如提示用户打开定位、蓝牙或者WIFI,提醒用户打开推送或者位置权限等

在iOS6之后,第三方应用需要跳转系统设置界面,需要在URL type中添加一个prefs值,如下图:

UI进阶 跳转系统设置相关界面的方法images/loading.gif' data-original="http://static.oschina.net/uploads/space/2016/0223/120817_MF8D_2340880.png" />

跳转系统设置根目录中的项目使用下面的方法

UI进阶 跳转系统设置相关界面的方法
 1     _array = @[ 2        @{@"系统设置":@"prefs:root=INTE.NET_TETHERING"}, 3        @{@"WIFI设置":@"prefs:root=WIFI"}, 4        @{@"蓝牙设置":@"prefs:root=Bluetooth"}, 5        @{@"系统通知":@"prefs:root=NOTIFICATIONS_ID"}, 6        @{@"通用设置":@"prefs:root=General"}, 7        @{@"显示设置":@"prefs:root=DISPLAY&BRIGHTNESS"}, 8        @{@"壁纸设置":@"prefs:root=Wallpaper"}, 9        @{@"声音设置":@"prefs:root=Sounds"},10        @{@"隐私设置":@"prefs:root=privacy"},11        @{@"APP Store":@"prefs:root=STORE"},12        @{@"Notes":@"prefs:root=NOTES"},13        @{@"Safari":@"prefs:root=Safari"},14        @{@"Music":@"prefs:root=MUSIC"},15        @{@"photo":@"prefs:root=Photos"}16         ];17     NSURL * url = [NSURL URLWithString:[_array[index] allValues].firstObject];18     [[UIApplication sharedApplication]openURL:url];
UI进阶 跳转系统设置相关界面的方法

如果要跳转第三方应用的设置界面中,使用prefs:root=boundleId的方式,boundleId是第三方应用的boundleId。
如果需要继续向项目内层进行跳转,可以通过添加path路径的方式,如下:

UI进阶 跳转系统设置相关界面的方法
 1       _array = @[ 2        @{@"关于本机":@"prefs:root=General&path=About"}, 3        @{@"软件升级":@"prefs:root=General&path=SOFTWARE_UPDATE_LINK"}, 4        @{@"日期时间":@"prefs:root=General&path=DATE_AND_TIME"}, 5        @{@"Accessibility":@"prefs:root=General&path=ACCESSIBILITY"}, 6        @{@"键盘设置":@"prefs:root=General&path=Keyboard"}, 7        @{@"VPN":@"prefs:root=General&path=VPN"}, 8        @{@"壁纸设置":@"prefs:root=Wallpaper"}, 9        @{@"声音设置":@"prefs:root=Sounds"},10        @{@"隐私设置":@"prefs:root=privacy"},11        @{@"APP Store":@"prefs:root=STORE"},12        @{@"还原设置":@"prefs:root=General&path=Reset"},13        @{@"应用通知":@"prefs:root=NOTIFICATIONS_ID&path=应用的boundleId"}14        ]; 
UI进阶 跳转系统设置相关界面的方法





原标题:UI进阶 跳转系统设置相关界面的方法

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

青岛港到马来西亚海运费:https://www.goluckyvip.com/tag/92495.html
天津到马来西亚船运:https://www.goluckyvip.com/tag/92496.html
上海到马来西亚运价:https://www.goluckyvip.com/tag/92497.html
马来西亚到宁波船运几天:https://www.goluckyvip.com/tag/92498.html
中国走吉隆坡海运:https://www.goluckyvip.com/tag/92499.html
土耳其统计局:https://www.goluckyvip.com/tag/925.html
去日本入住酒店,东西随意用却有一个特殊“要:https://www.vstour.cn/a/411241.html
中国有哪些著名的酒店品牌。:https://www.vstour.cn/a/411242.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流