Ian Vink
Ian Vink

Reputation: 68740

iOS: Has granted permission?

Is there a Core Location object that we can ask to see if the user has granted the app the right to give their location?

Currently we have to check to see if the location object's Coordinate IsValid each time.

Upvotes: 0

Views: 630

Answers (1)

mattjgalloway
mattjgalloway

Reputation: 34902

Take a look at CLLocationManager's + (CLAuthorizationStatus)authorizationStatus method. It's since iOS 4.2 and tells you the app's authorisation state.

Upvotes: 4

Related Questions