gpt4 book ai didi

ios - 位置管理器 :didFailWithError: not called if user Location Services are off

转载 作者:塔克拉玛干 更新时间:2023-11-01 19:11:24 25 4
gpt4 key购买 nike

来自 locationManager:didFailWithError: 的文档

If the user denies your application’s use of the location service, this method reports a kCLErrorDenied error. Upon receiving such an error, you should stop the location service.

当用户对“MyApp 希望使用您的当前位置”问题按“不允许”时,它会起作用,因此您可以管理这种可能性。

但是当用户在“打开位置服务以允许“MyApp”确定您的位置”问题时按“取消”(如果位置服务关闭时出现的消息),则没有任何反应。

有没有办法进行任何类型的回调?

最佳答案

针对特定情况使用[CLLocationManager locationServicesEnabled]

关于ios - 位置管理器 :didFailWithError: not called if user Location Services are off,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12429249/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com