The application invokes the system settings and enters the relevant settings
1. Prior to iOS 5.1
You can use the URLs schemes directly with OpenURL: Open
For example:
nsurl*url=[nsurl urlwithstring:@ "Prefs:root=location_services"];
[[UIApplication sharedapplication] openurl:url];
Prefs:root=location_services This is the URL Open Location service
Open Other search terms "IOS call system settings" corresponding to
Or
Please see:
1.http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme?rq=1
2.http://blog.sina.com.cn/s/blog_983ef3f201011zel.html
2. after iOS 5.1
This method is removed in detail:http://www.idownloadblog.com/2011/11/29/iphone-5-1-disables-shortcuts/
You need to set the URL manually shcemes
:
Details: http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme?rq=1
after 3.iOS 8
method One: The above method is available ( test environment: Xcode6.4 iOS8.4)
method Two : replace the URL with the uiapplicationopensettingsurlstring field
This method can only enter the interface where the setting cannot enter a deeper layer
details : https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_ Class/index.html#//apple_ref/doc/constant_group/settings_launch_url
4 ' where PREFS changes to App-settings can also enter settings but not deeper
’
Reference links :
Http://stackoverflow.com/questions/4496813/call-the-official-settings-app-from-my-app-on-iphone
Http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme?rq=1
Http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme
http://www.idownloadblog.com/2011/11/29/iphone-5-1-disables-shortcuts/
Https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ Ref/doc/constant_group/settings_launch_url
iOS calls system settings and enters related settings