How to open settings using the UIApplication.sharedApplication () command
What URL should I go through?
I used UIApplicationOpenSettingsURLString
, but it opens directly on the application settings page. but I would like for him to open the first level of the Settings app.
Or, even better, I would like to open it directly on the page where the user can enable the location services on his phone.
The codes below open directly on the application settings page.
UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!);
source
share