iOS APP跳轉設定頁面彙總
在iOS8中,我們可以這麼設定:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
需要設定一下
在 URL Types 新增 一個叫 prefs 的 URL Schemes
如圖: 這裡是關鍵,如果不設定的話無法完成跳轉
在需要跳轉的地方新增程式碼:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"跳轉不同介面對應的URLString"]]
關於 iOS 系統功能的
URLString
蜂窩網路:prefs:root=MOBILE_DATA_SETTINGS_ID
VPN — prefs:root=General&path=Network/VPN
iCloud:prefs:root=CASTLE
iCloud備份:prefs:root=CASTLE&path=STORAGE_AND_BACKUP
語言:prefs:root=General&path=INTERNATIONAL
定位:prefs:root=LOCATION_SERVICES
音樂:prefs:root=MUSIC
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=General&path=Bluetooth
時間設定:prefs:root=General&path=DATE_AND_TIME
FaceTime:prefs:root=FACETIME
設定:prefs:root=General
鍵盤設定:prefs:root=General&path=Keyboard
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
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