【问题标题】:CLLocationManager locationServicesEnabled always return TRUE in iOS 9CLLocationManager locationServicesEnabled 在 iOS 9 中总是返回 TRUE
【发布时间】:2016-10-21 10:35:06
【问题描述】:

我一直在对 CoreLocation 进行一些研究。最近遇到一个问题,iOS 9 中 [CLLocationManager locationServicesEnabled] 总是返回 true。请告诉我为什么会这样..

谢谢

【问题讨论】:

标签: xcode cllocationmanager ios9.1


【解决方案1】:

请记住,自 iOS 4.0 起,[locationManager locationServicesEnabled] 已被弃用。请改用类方法 [CLLocationManager locationServicesEnabled]。

应用特定按钮可以通过

检索

[CLLocationManager 授权状态]

【讨论】:

    猜你喜欢
    • 2011-05-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-16
    • 1970-01-01
    • 1970-01-01
    • 2013-08-06
    • 2017-05-10
    • 2013-06-12
    相关资源
    最近更新 更多