Posted by Li Gang Dec 1St , 10:12 pm iOS development
The source of this article just online: http://www.superqq.com/blog/2015/12/01/jump-setting-per-page/
Location Services
Location services have a lot of apps, if users close the location, then, we can prompt users in the app to open Location services. Click to set interface settings and jump directly to the location Service Settings screen. The code is as follows:
//定位服务设置界面NSURL *url = [NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"];if ([[UIApplication sharedApplication] canOpenURL:url]){ [[UIApplication sharedApplication] openURL:url];}
This allows you to jump to the location service interface of the system settings! Let's keep looking at a few columns.
FaceTime
//FaceTime设置界面NSURL *url = [NSURL URLWithString:@"prefs:root=FACETIME"];if ([[UIApplication sharedApplication] canOpenURL:url]){ [[UIApplication sharedApplication] openURL:url];}
Music
//音乐设置界面NSURL *url = [NSURL URLWithString:@"prefs:root=MUSIC"];if ([[UIApplication sharedApplication] canOpenURL:url]){ [[UIApplication sharedApplication] openURL:url];}
Wallpaper Setup Interface
//墙纸设置界面NSURL *url = [NSURL URLWithString:@"prefs:root=Wallpaper"];if ([[UIApplication sharedApplication] canOpenURL:url]){ [[UIApplication sharedApplication] openURL:url];}
Bluetooth Settings interface
//蓝牙设置界面NSURL *url = [NSURL URLWithString:@"prefs:root=Bluetooth"];if ([[UIApplication sharedApplication] canOpenURL:url]){ [[UIApplication sharedApplication] openURL:url];}
icloud Setup Interface
//iCloud设置界面NSURL *url = [NSURL URLWithString:@"prefs:root=CASTLE"];if ([[UIApplication sharedApplication] canOpenURL:url]{ [[UIApplication sharedApplication] openURL:url];}
Parameter configuration
See these examples, we have found that you want to jump to which setting interface only need to prefs:root= the value behind! Yes, that's it.
I found a list on the internet and can jump to the parameter configuration of these interfaces:
About-prefs:root=general&path=aboutaccessibility-prefs:root=general&path=accessibilityairplane Mode on- prefs:root=airplane_modeauto-lock-prefs:root=general&path=autolockbrightness-prefs:root= Brightnessbluetooth-prefs:root=general&path=bluetoothdate & Time-prefs:root=general&path=date_and_ timefacetime-prefs:root=facetimegeneral-prefs:root=generalkeyboard-prefs:root=general&path=keyboardicloud- Prefs:root=castleicloud Storage & Backup-prefs:root=castle&path=storage_and_backupinternational-prefs: Root=general&path=internationallocation Services-prefs:root=location_servicesmusic-prefs:root=musicmusic Equalizer-prefs:root=music&path=eqmusic Volume Limit-prefs:root=music&path=volumelimitnetwork-prefs:root =general&path=networknike + ipod-prefs:root=nike_plus_ipodnotes-prefs:root=notesnotification-prefs:root= Notifications_idphone-prefs:root=phonephotos-prefs:root=photosprofile-prefs:root=general&aMp;path=managedconfigurationlistreset-prefs:root=general&path=resetsafari-prefs:root=safarisiri-prefs:root =general&path=assistantsounds-prefs:root=soundssoftware Update-prefs:root=general&path=software_update_ linkstore-prefs:root=storetwitter-prefs:root=twitterusage-prefs:root=general&path=usagevpn-prefs:root= General&path=network/vpnwallpaper-prefs:root=wallpaperwi-fi-prefs:root=wifi
Free reprint-Please indicate the origin of this article at the beginning.
Public number IO
iOS development how to jump to various settings in the System settings interface