JayVDiyk JayVDiyk - 1 month ago 12x
Objective-C Question

Open Settings iOS 8 URL

How do we open Settings using the UIApplication.sharedApplication()

What URL should I pass in?

I used the

but it opens directly to the Application specific Settings page. but I would like to have it open the first level of the Settings app.

Or even better, I would like it to open directly to the page where user can enable the Location Services on their phone.

the codes below opens directly to the Application specific Settings page.

UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!);


the answer to this questions is NO, we can't open direct Location page ,but we can open UIApplicationOpenSettingsURLString (settings page)

try this

if let appSettings = NSURL(string: UIApplicationOpenSettingsURLString) {
 // your URL is invalid

for additional information