开发者

How to tell what the user answered for the location service prompt?

I am using the ALAssetLibrary to grab the origina开发者_运维技巧l creation date of a photo. When I do so, the location service prompt pops up asking the user if the app can access geodata. I understand the need for this (even though I'm not using geodata). However, how do I know what the user responded? I need to be able to save the response so my code can take the appropriate path next time.


Since you are talking of location services, you can use the method in CLLocationManager.

if ( [CLLocationManager authorizationStatus] != kCLAuthorizationStatusAuthorized) {
    // Your app is not authorized.
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜