IOS10, permissions this piece has a few changes
1. Open the App Settings screen
// Open Settings Let Url:nsurl = Nsurl (string: uiapplicationopensettingsurlstring)! if as URL) { as URL) }
This is to jump to their own app path under the permissions interface, such as camera permissions, contacts and so on, can be directly switch settings.
1. Open the System WiFi interface
Let URL = URL (string:"App-prefs:root=wifi") if#available (IOS10.0, *){ ifUIApplication.shared.canOpenURL (url!) {UIApplication.shared.openURL (URL!) }Else{print ("iOS 10 open WiFi interface error") } }Else{ //Open the WiFi interface ifUIApplication.shared.canOpenURL (url!) {UIApplication.shared.openURL (URL!) }Else{print ("Open WiFi interface error below iOS 10") } }
This can be achieved IOS10 under the jump WiFi inside, you can directly select a WiFi connection.
IOS10 Open the App Settings screen and WiFi interface