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.