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