Here is instructions how to open specific system settings page from your iOS application. It works from iOS version 8. I create small demo project which you can check, it's available on GitHub.
- First set bundle URL type to allow handle
prefsURL scheme by your application - In XCode open project settings: Targets - ApplicationTarget - Info - URL Types
- Or add
CFBundleURLTypeskey to application'sinfo.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>prefs</string>
</array>
</dict>
</array>- Now you can use
UIApplication.sharedApplication().openURL(url)to open desired setting page
let app = UIApplication.sharedApplication()
let url = NSURL(string: "prefs:root=General&path=About")!
if app.canOpenURL(url) {
app.openURL(url)
}- For available URLs check Links section below
- You can use URL string
UIApplicationOpenSettingsURLStringto open current application settings if application has any
