>=ios8 in-app jump to System Setup interface-openurl

Source: Internet
Author: User

After iOS8, Apple allows you to jump from within the app to the system settings, but the debug results indicate that you cannot jump to a specific setting, and before using it, you should determine whether you are currently able to jump to system settings.

Code:

1     Nsurl *url = [Nsurl urlwithstring:uiapplicationopensettingsurlstring]; 2     if ([[[UIApplication sharedapplication] canopenurl:url]) {3        [[uiapplication Sharedapplication] Openurl:url]; 4     } Else {5      6     }

Paste the unused iOS5 usage:

1 // Location2Nsurl *url = [Nsurl urlwithstring:@"prefs:root=location_services"];3     if([[[UIApplication sharedapplication] canopenurl:url]) {4 [[UIApplication sharedapplication] openurl:url];5}Else{6NSLog (@"there ....");7}
1About-prefs:root=general&path= About2Accessibility-prefs:root=general&path=Accessibility3Airplane Mode on-prefs:root=Airplane_mode4Auto-lock-prefs:root=general&path=Autolock5brightness-prefs:root=Brightness6Bluetooth-prefs:root=general&path=Bluetooth7Date & Time-prefs:root=general&path=Date_and_time8facetime-prefs:root=FACETIME9general-prefs:root= GeneralTenKeyboard-prefs:root=general&path=Keyboard Oneicloud-prefs:root=CASTLE AICloud Storage & Backup-prefs:root=castle&path=Storage_and_backup -International-prefs:root=general&path=International -Location services-prefs:root=location_services themusic-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 Aphone-prefs:root=Phone atphotos-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 inSoftware update-prefs:root=general&path=Software_update_link -store-prefs:root=STORE totwitter-prefs:root=TWITTER +Usage-prefs:root=general&path=USAGE -vpn-prefs:root=general&path=network/VPN thewallpaper-prefs:root=Wallpaper *wi-fi-prefs:root=WIFI $Setting-prefs:root=internet_tethering

Others to be tested, not to be continued ...

>=ios8 in-app jump to System Setup interface-openurl

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.