【问题标题】:Is it possible to have a custom region shape? Core Location是否可以有自定义区域形状?核心位置
【发布时间】:2014-11-18 09:14:36
【问题描述】:

例如,至少我想要一个正方形/矩形/道路形状作为我的区域。

【问题讨论】:

  • 你解决过这个问题吗?

标签: ios iphone gps core-location geofencing


【解决方案1】:

不,不是。根据文档,目前唯一的区域类是 CLCircularRegion,它显然是圆形的,以及基于与 iBeacon 接近的 CLBeaconRegion。未来苹果可能会添加对自定义形状区域的支持,但从 iOS 8 开始,就是这样。

https://developer.apple.com/LIBRARY/ios/documentation/CoreLocation/Reference/CLRegion_class/index.html#//apple_ref/occ/cl/CLRegion

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多