I want to show the message which asks the user if he accepts that the application will use the location services in his device. How can i implement that, WITHOUT saving his location? I’ve tried to do startLocationUpdates and then stopLocationUpdates, but that doesn’t work. If i remove the stopLocationUpdates, that works, but the location indicator remains in the status bar.
If you ask why i need this, I’m using Core Location methods few screens later. Before using them, i check for + (CLAuthorizationStatus)authorizationStatus , and if it’s different from “Authorized”, i give an alert message. Is that wrong ?
Thanks !
I suppose that you call to
startLocationUpdatesand thenstopLocationUpdatesin the same method?If this is the case then try the following:
This way the
stopLocationUpdatesmethod will be called in the next runloop.