Is it possible to have a custom region shape? Core Location

六月ゝ 毕业季﹏ 提交于 2021-02-10 16:25:21

问题


For example at least I want a square/rectangle/ the shape of the road to be my region.


回答1:


No it is not. As per the the documentation, currently the only region classes are CLCircularRegion, which is obviously circular, and CLBeaconRegion which is based on the proximity to an iBeacon. It is possible in the future that apple will add support for custom shaped regions but as of iOS 8, this is it.

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



来源:https://stackoverflow.com/questions/26990480/is-it-possible-to-have-a-custom-region-shape-core-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!