【问题标题】:Why does the iPhone GPS arow appear in the status bar, even though I did not call startUpdatingLocation on the Location Manager?为什么 iPhone GPS 箭头出现在状态栏中,即使我没有在位置管理器上调用 startUpdatingLocation?
【发布时间】:2012-10-30 07:41:51
【问题描述】:

除了在 CLLocationManager 上调用 startUpdatingLocation 或 startUpdatingHeading 之外,还有什么会导致 GPS 箭头出现在状态栏中?

当你使用 CLLocationManager 或 CLLocation 对象进行任何操作时,它是否会出现,例如计算两个 CLLocation 之间的距离?

如果是这样,这是否代表任何功耗,就像使用 GPS 时启动UpdatingLocation 一样?

【问题讨论】:

标签: iphone ios core-location


【解决方案1】:

如果你实例化CLLocationManager,然后在上面调用location,就会出现GPS箭头。

【讨论】:

    猜你喜欢
    • 2021-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-14
    • 1970-01-01
    • 2012-02-23
    相关资源
    最近更新 更多