iOS development how to jump to various settings in the System settings interface

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.