How to turn ON location services through Code in my application if location service is in OFF condition i want it to ON through alertView i have two buttons in alertview cancel & settings
if i click settings it needs to go settings of the device is it possible???
Could anyone help me??
thanks………..
I’ve had to deal with the same problem but this is just not possible under iOS. You have to check if location services is enabled :
and if not, ask the user to go to the settings to enable it (through an AlertView for example).
Note that Apple says :
But that only seem to work the very first time you check. If the user denies, the confirmation panel is not shown anymore.
You may also check :