How to check if location services are enabled for a particular app prior to iOS 4.2?

Posted by NobleK on Stack Overflow See other posts from Stack Overflow or by NobleK
Published on 2011-01-15T17:20:13Z Indexed on 2011/03/13 0:10 UTC
Read the original article Hit count: 230

Filed under:
|
|

Hello

How can I check if the user has allowed location for mu app? Normally I would use authorizationStatus method of the CLLocationManager class, but it is only available in iOS 4.2 and newer. Is it possible to achieve this somehow while still using SDK 4.2, so that the app can still run on devices with older versions of iOS, or do I have to downgrade the SDK? And along the same line, I need a similar alternative for the locationServicesEnabled method prior to iOS 4.0.

Thanx

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cllocationmanager