IOS opens the system setting page

Source: Internet
Author: User
The SDK can now open the setting page directly. In the past, the SDK was not available. At that time, I spent a lot of time implementing it, and the result failed. If you want to open location s

The ios5 SDK can now open the setting page directly. In the past, the SDK was unavailable. At that time, I spent a lot of time implementing it, and the result failed.

If you want to open the setting page of location services,CodeAs follows:

[[Uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "prefs: Root = location_services"];

To enable Twitter settings:

[[Uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "prefs: Root = Twitter"];

To enable the Bluetooth settings:

[[Uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "prefs: Root = General & Path = Bluetooth"];

Of course, you can also open the application settings:

[[Uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "prefs: Root = apps & Path = Your + app + display + name"];

what is your + app + display + name. But I didn't open the setting of the application when I tried this. Instead, I opened the setting page of the system. I don't know why.

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.