IOS jumps from the app to multiple settings pages on the system settings page.

Source: Internet
Author: User

IOS jumps from the app to multiple settings pages on the system settings page.

During app development, we often need to set system permissions. In this case, we need to jump to the system settings page permission settings page in the application, the following are some of my experiences on the Internet:

NSURL * url = [NSURL URLWithString: UIApplicationOpenSettingsURLString];

If ([[UIApplication sharedApplication] canOpenURL: url]) {

[[UIApplication sharedApplication] openURL: url];

}

2. jump from the application to the other settings page of the system.

If you only want to jump to another setting interface, you only need to find the URL parameter of the corresponding interface. Here I use the positioning permission as an example:

NSURL * url = [NSURL URLWithString: @ "prefs: root = LOCATION_SERVICES"];

If ([[UIApplication sharedApplication] canOpenURL: url]) {

[[UIApplication sharedApplication] openURL: url];

}

Note: during the test in the project, I can directly jump to the corresponding interface as shown above, but I have seen on the Internet that I still need to add URL types to info in the project, the pictures shown by netizens are as follows:

I have not figured out whether or not to add this step, but I can successfully jump without this step. It is only for reference by friends who need it.

 

Below are some interface URL parameter configurations:

About mobile phone About-prefs: root = General & path = About
Accessible Accessibility-prefs: root = General & path = ACCESSIBILITY
Flight Mode 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 = icationications_id

Profile-prefs: root = General & path = ManagedConfigurationList
Restore Reset-prefs: root = General & path = Reset
Browser 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

VPN-prefs: root = General & path = Network/VPN
Wallpaper-prefs: root = Wallpaper
Wi-Fi-prefs: root = WIFI

Setting-prefs: root = INTERNET_TETHERING

Will jump to the general interface:

Phone-prefs: root = Phone

Photos-prefs: root = Photos

Usage-prefs: root = General & path = USAGE

 

Related Article

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.