I'm new to Swift programming. I made a simple test application that programmatically opens settings using a specific button.
Unfortunately, after updating the button, instead of opening the page of the desired settings (in this case, on the wifi page), only the general settings screen opens. Maybe someone, please help me understand what exactly changed in Quick 4 so that I can fix it behavior? Tansk a lot!
The first code used is (I either changed the iOS available for iOS 11.0 to fit the deployment)
if let url = URL(string:"App-Prefs:root=WIFI") {
if UIApplication.shared.canOpenURL(url) {
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
}
}
}
second code used :
let url = URL(string: "App-Prefs:root=WIFI")
UIApplication.shared.openURL(url!)
EDIT
, - , , APP