I Want to emit this alert:
Turn On Location Services to allow maps to determine your location
I need both "Settings" and "Cancel" exactly like the "maps" application.
"Settings" should open settings->general->location services
I didn't find the way to open the settings page.
Can you help me?
Thanks
You can't open specific settings page like General, Locatios etc., but you can open settings page in iOS 8.
It's not something you add. That screen comes up when the applications wants to use locational services but it's turned off in the settings.
The same thing happens with push notifications.
It's not possible to open the setting pane programmatically at this moment. Refer to here.
How other said, you can't open Settings app programmatically if you want your app on the App Store.
This popup is automatically "generated" at launch of your app if it support and uses a determined functions like Location Service.
You can find more informations about this service on the Reference Library: https://developer.apple.com/library/ios/navigation/#section=Frameworks&topic=CoreLocation
Creating the alert is pretty straightforward, it's just a (faux-)modal UIView.
However, it's not possible to open the Settings app programmatically, at least not without using private methods that will prevent your app from being approved for the App Store.
Swift 2.0 version: