URL Scheme "Open Settings" ios
As of iOS 8, it's possible to launch the Settings app that directly opens your Privacy app section in this way:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
In Swift:
if let settingsURL = NSURL(string: UIApplicationOpenSettingsURLString) {
UIApplication.sharedApplication().openURL(settingsURL)
}
In Swift 3.0:
if let settingsURL = URL(string: UIApplicationOpenSettingsURLString + Bundle.main.bundleIdentifier!) {
UIApplication.shared.openURL(settingsURL as URL)
}
1.- Add URL Types
2.- Use:
Objective - C
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];
Swift
UIApplication.sharedApplication().openURL(NSURL(string: "prefs:root=General")!)
3.- Other path find in this answer: iOS Launching Settings -> Restrictions URL Scheme