Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically opening the settings app (iPhone) [duplicate]

Tags:

Is it currently possible to go to Apple's Settings application from a third party iPhone application? It's currently possible to open mail, safari, etc. What about Settings?

like image 531
Coocoo4Cocoa Avatar asked Apr 09 '09 21:04

Coocoo4Cocoa


2 Answers

As of iOS 5.0 you are able to open the settings app using the "prefs://" URL scheme. You are out of luck on earlier versions.

like image 103
Jon C Avatar answered Oct 02 '22 14:10

Jon C


suggestion from Yatheesha is right, but fails under Xcode 7.0/ swift 2.

use:

UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!)           
like image 45
ingconti Avatar answered Oct 02 '22 13:10

ingconti