开发者

Handling CoreLocation service reply

开发者 https://www.devze.com 2022-12-09 07:20 出处:网络
In my app i am using CoreLocation services to access current Location. For accessing the current loc开发者_Python百科ation in iPhone the Location service must be turned ON in settings. If not it alert

In my app i am using CoreLocation services to access current Location. For accessing the current loc开发者_Python百科ation in iPhone the Location service must be turned ON in settings. If not it alerts the user as

"Turn On Location Services to Allow "helloworldApp" to determine Your Location" and choices for this alert message are settings and cancel.

Now how can i handle this reply from CoreLocation framework. Whether user clicks on the settings button or cancel button?

Please Suggest.

Any help would be appreciated !

-Sathiya


Query CLLocationManager for locationServicesEnabled property. If this is disabled, you can count on either the user having rejected your request or he disabling it on settings.

0

精彩评论

暂无评论...
验证码 换一张
取 消