Search code examples
iosswiftxcodecllocationmanagercllocation

Cant open location services screen


please someone help me. How can I open Location Services from my app? I tried this but it doesn't work

URL(string: "prefs:root=LOCATION_SERVICES")

Solution

  • Opening a specific sub-screen of Settings programatically no longer works, since iOS 11. Now all you can do is open main screen of Settings App, using url string App-Prefs