Check for Location Services On/Off? (iOS)

When you first call a mapView on an iOS device, the device asks the user if he wants to allow your app to track his location - if he agrees, then everything is hunky-dory. If he declines, then the app’s “location services” setting is switched to “off” and any attempts to call “getUserLocation()” cause the app to crash.

I’m hoping somebody smarter than me might think of a way to check the app’s location services setting, so that I can run a check before calling “getUserLocation()”, and prevent the crash. Anybody have any ideas? Thanks in advance for your help.

-Jason [import]uid: 27636 topic_id: 8317 reply_id: 308317[/import]

Thank you for the report. I filed a bug.
http://bugs.anscamobile.com/default.asp?4754

I don’t know of a workaround at the moment.

Tim [import]uid: 8196 topic_id: 8317 reply_id: 32151[/import]