iOS calls system settings and enters related settings

Source: Internet
Author: User
Tags uikit

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

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.