【问题标题】:How can i understand if location services is using GPS or not to determine user's location in iOS?我如何了解位置服务是否使用 GPS 来确定用户在 iOS 中的位置?
【发布时间】:2016-04-18 13:19:35
【问题描述】:

如果来自 GPS 或 Wifi,有什么方法或方法可以获取位置来源?

谢谢。

【问题讨论】:

    标签: ios gps core-location currentlocation


    【解决方案1】:

    恕我直言,没有办法确定信号是来自 GPS 还是 WIFI 或其他什么(这处理 CoreLocation 框架) - 但您仍然可以根据当前精度“决定” - horizo​​ntalAccuracy 属性和CLLocation 对象中的 verticalAccuracy 属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-10
      • 1970-01-01
      • 2013-04-19
      • 2014-04-26
      相关资源
      最近更新 更多