iphone - How to check if Location Services is On or not? -


how can check if user has turned off location services ?

so can prompt him/her turn on in order use app.

thank !

the cllocationmanager provides class methods determine availability of location services:

- (bool)locationservicesenabled (for < ios 4.0)

+ (bool)locationservicesenabled (for ios 4.0 , greater)

+ (clauthorizationstatus)authorizationstatus (for ios 4.2+)

(and others, see documentation)


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -