弹出NSLocationWhenInUsageDescription提示符

时间:2015-03-07 20:02:29

标签: ios core-location

当我运行应用程序时,NSLocationWhenInUsageDescription提示出现一次,但在多次运行后再也没有出现过。

该应用仍然会缩放到当前位置和Apple位置。

该应用有效,但问题没有弹出。

1 个答案:

答案 0 :(得分:1)

根据文档:https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/index.html#//apple_ref/occ/instm/CLLocationManager/requestWhenInUseAuthorization,只询问一次问题,无论是点击“允许”还是“拒绝”。但您仍然可以在“设置”应用中,“隐私”设置,“位置”服务以及特定应用中查看说明。描述文本应显示在视图的底部。