The following code works fine on iOS 9, see this post. But it doesn\'t work on iOS 10. How to open WIFI settings programmatically on iOS 10
[[UIApplication s
For Swift:
let url = URL(string: "App-Prefs:root=WIFI") if UIApplication.shared.canOpenURL(url!){ UIApplication.shared.openURL(url!) }