首页 > 代码库 > IOS系统设置页面跳转

IOS系统设置页面跳转

目录:

  • 跳转
  • iOS10- 版本跳转url转
  • iOS10+ 版本跳转url转

跳转符

跳转到系统设置界面代码:

// 自己应用的设置界面:url = UIApplicationOpenSettingsURLStringfunc switchToSystemSettingsUrl(prefs : String) {    let url = URL(string: prefs)!    if #available(iOS 10.0, *) {        if UIApplication.shared.canOpenURL(url) {            UIApplication.shared.open(url, options: [:], completionHandler: { (sucess) in                if sucess {                    print("ok")                }            })        }     }else {        // Fallback on earlier versions        if UIApplication.sharedApplication().canOpenURL(settingUrl) {            UIApplication.sharedApplication().openURL(settingUrl)        }    }}

 

iOS10- 版本跳转url
About              — prefs:root=General&path=About  Accessibility      — prefs:root=General&path=ACCESSIBILITY  Airplane Mode On   — prefs:root=AIRPLANE_MODE  Auto-Lock          — prefs:root=General&path=AUTOLOCK  Brightness         — prefs:root=Brightness  Bluetooth          — prefs:root=General&path=Bluetooth  Date & Time        — prefs:root=General&path=DATE_AND_TIME  FaceTime           — prefs:root=FACETIME  General            — prefs:root=General  Keyboard           — prefs:root=General&path=Keyboard  iCloud             — prefs:root=CASTLE  iCloud Storage & Backup — prefs:root=CASTLE&path=STORAGE_AND_BACKUP  International      — prefs:root=General&path=INTERNATIONAL  Location Services  — prefs:root=LOCATION_SERVICES  Music              — prefs:root=MUSIC  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  VPN                — prefs:root=General&path=Network/VPN  Wallpaper          — prefs:root=Wallpaper  Wi-Fi              — prefs:root=WIFI  Setting            — prefs:root=INTERNET_TETHERING

 

iOS10+ 版本跳转url
Wi-Fi              — App-Prefs:root=WIFIBluetooth          — App-Prefs:root=BluetoothMobile Data        — App-Prefs:root=MOBILE_DATA_SETTINGS_IDSetting            — App-Prefs:root=INTERNET_TETHERINGCarrier            — App-Prefs:root=CarrierNotification       — App-Prefs:root=NOTIFICATIONS_IDGeneral            — App-Prefs:root=GeneralAbout              — App-Prefs:root=General&path=AboutKeyboard           — App-Prefs:root=General&path=KeyboardAccessibility      — App-Prefs:root=General&path=ACCESSIBILITYInternational      — App-Prefs:root=General&path=INTERNATIONALReset              — App-Prefs:root=ResetWallpaper          — App-Prefs:root=WallpaperSiri               — App-Prefs:root=SIRIPrivacy            — App-Prefs:root=PrivacyLocation Services  — App-Prefs:root=LOCATION_SERVICESSafari             — App-Prefs:root=SAFARIMusic              — App-Prefs:root=MUSICMusic Equalizer    — App-Prefs:root=MUSIC&path=com.apple.Music:EQPhotos             — App-Prefs:root=PhotosFaceTime           — App-Prefs:root=FACETIME

 

声明:该系列内容均来自网络或电子书籍,只做学习总结!

IOS系统设置页面跳转