iOS app-open system settings URL

Source: Internet
Author: User

iOS---Invoke the function in the system "settings" (GO)

After installation, the first time you run the software, the system will prompt the user whether to allow the software to obtain the current location, if the user does not allow, then the runtime system will not be prompted to set up, this is inconvenient, there is a solution is to give the user an option to bring up the iphone "Settings" location service option, manually set by the user , call the system "settings" to locate the service-related code as follows:

-(Ibaction) btnsetting: (ID) sender{
Nsurl*url=[nsurl urlwithstring:@ "Prefs:root=location_services"];
[[UIApplication sharedapplication] openurl:url];
}

There are other commands for invoking system settings:
Www.2cto.com

[Font=]
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

iOS app-open system settings URL

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.