Method One:
Nsurl *url = [Nsurl urlwithstring:uiapplicationopensettingsurlstring];
url = [Nsurl urlwithstring:uiapplicationopensettingsurlstring];
if ([[[UIApplication sharedapplication] Canopenurl:url]) {
[[UIApplication sharedapplication] openurl:url];
}
which
Uiapplicationopensettingsurlstring is a string, defined in the application file, with a number of static strings that open other settings pages, such as positioning settings, and so on.
Method Two:
Nsurl*url=[nsurl urlwithstring:@ "Prefs:root=location_services"]; Positioning settings for
[[UIApplication sharedapplication] openurl:url];
See the table below
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
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
Summarize:
Method one is the system to help us define a static string, whose string is the method two enumerated
Open system settings via app (location rights, camera permissions, etc.)