iOS10開發之跳轉系統設定的正確姿勢,ios10跳轉系統設定
當前iOS10支援的所有跳轉,親測可用(測試系統:10.2.1、9.3.1)
跳轉 |
寫法 |
無線區域網路 |
App-Prefs:root=WIFI |
藍芽 |
App-Prefs:root=Bluetooth |
蜂窩移動網路 |
App-Prefs:root=MOBILE_DATA_SETTINGS_ID |
個人熱點 |
App-Prefs:root=INTERNET_TETHERING |
電訊廠商 |
App-Prefs:root=Carrier |
通知 |
App-Prefs:root=NOTIFICATIONS_ID |
通用 |
App-Prefs:root=General |
通用-關於本機 |
App-Prefs:root=General&path=About |
通用-鍵盤 |
App-Prefs:root=General&path=Keyboard |
通用-協助工具功能 |
App-Prefs:root=General&path=ACCESSIBILITY |
通用-語言與地區 |
App-Prefs:root=General&path=INTERNATIONAL |
通用-還原 |
App-Prefs:root=Reset |
牆紙 |
App-Prefs:root=Wallpaper |
Siri |
App-Prefs:root=SIRI |
隱私 |
App-Prefs:root=Privacy |
Safari |
App-Prefs:root=SAFARI |
音樂 |
App-Prefs:root=MUSIC |
音樂-均衡器 |
App-Prefs:root=MUSIC&path=com.apple.Music:EQ |
照片與相機 |
App-Prefs:root=Photos |
FaceTime |
App-Prefs:root=FACETIME |
NSURL * url = [NSURL URLWithString:@"App-Prefs:root=Bluetooth"];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
if (@available(iOS 10.0, *)) {
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
} else {
[[UIApplication sharedApplication] openURL:url];
}
}else{
[SVProgressHUD showInfoWithStatus:@"請手動開啟藍芽"];
}