iPhone 位置服务已关闭,但应用程序仍能获取位置?

标签 iphone ios cllocationmanager

我关闭了 iPhone 上的定位服务,因为我不希望该应用确定我的位置。但是,当我运行该应用程序时,它会以某种方式获取我的位置!有什么想法吗?

最佳答案

正如文档所示 here

Locations

An array of CLLocation objects containing the location data. This array always contains at least one object representing the current location. If update events were deferred or if multiple events arrived before they could be delivered, the array may contain additional entries. The objects in the array are organized in the order in which they occurred. Therefore, the most recent location update is at the end of the array.

因此位置管理器总是显示出一些值(value)。

关于iPhone 位置服务已关闭,但应用程序仍能获取位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16790370/

相关文章:

iphone - 在 viewDidLoad 中的子类之后, [super viewDidLoad] 被调用,但方法没有被执行

iphone - itms-services//action=download-manifest url 作为本地文件

ios - MKMapKit不显示userLocation

ios - 当我的应用程序处于后台时在 iOS 上捕获硬件按钮

iphone - 使用搜索栏

ios - AFNetworking 可达性 iOS

iphone - 如何将 Xcode 4 项目修改为独立于机器的 Visual Studio 或 Eclipse 行为

ios - UIButton 垂直底部对齐不起作用

ios - 获取当前位置而不是缓存 ios

ios - kCLErrorDomain代码= 8“该操作无法完成。