App跳转到系统设置
------------------------------------------------整理备用,方便查询----------------------------------------------------
直接上代码:
NSURL *url = [NSURL URLWithString:@"APP-Prefs:root=Phone"];
BOOL b = [[UIApplication sharedApplication]canOpenURL:url];
if(b) {
if(@available(iOS10.0, *)) {
[[UIApplication sharedApplication]openURL:url options:@{}completionHandler:^(BOOL success) {}];
}else{
[[UIApplication sharedApplication]openURL:url];
}
}
iOS 10之前所有prefs中的P都是小写,而iOS 10之后Prefs中的P变成了大写
运营商 App-Prefs:root=Carrier
通用-还原 App-Prefs:root=Reset
Siri App-Prefs:root=SIRI
隐私 App-Prefs:root=Privacy
音乐 App-Prefs:root=MUSIC
音乐-均衡器 App-Prefs:root=MUSIC&path=com.apple.Music:EQ
蜂窝网络 Prefs:root=MOBILE_DATA_SETTINGS_ID
— Prefs:root=General&path=Network/
Wi-Fi Prefs:root=WIFI
定位服务 Prefs:root=LOCATION_SERVICES
个人热点 Prefs:root=INTERNET_TETHERING
关于本机 Prefs:root=General&path=About
辅助功能 Prefs:root=General&path=ACCESSIBILITY
飞行模式 Prefs:root=AIRPLANE_MODE
锁定 Prefs:root=General&path=AUTOLOCK
亮度 Prefs:root=Brightness
蓝牙 Prefs:root=Bluetooth
时间设置 Prefs:root=General&path=DATE_AND_TIME
FaceTime Prefs:root=FACETIME
设置-通用 Prefs:root=General
设置 Prefs:root=SETTING
定位服务 Prefs:root=LOCATION_SERVICES
键盘设置 Prefs:root=General&path=Keyboard
iCloud Prefs:root=CASTLE
iCloud备份 Prefs:root=CASTLE&path=STORAGE_AND_BACKUP
语言 Prefs:root=General&path=INTERNATIONAL
定位 Prefs:root=LOCATION_SERVICES
Music Equalizer Prefs:root=MUSIC&path=EQ
Music Volume Limit 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
Software Update — Prefs:root=General&path=SOFTWARE_UPDATE_LINK
Store — Prefs:root=STORE
Twitter — Prefs:root=TWITTER
Usage — Prefs:root=General&path=USAGE
Wallpaper — Prefs:root=Wallpaper