是否可以具有自定义区域形状?核心位置 [英] Is it possible to have a custom region shape? Core Location

查看:60
本文介绍了是否可以具有自定义区域形状?核心位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,至少我希望将正方形/矩形/道路形状作为我的区域.

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

推荐答案

不,不是.根据文档,当前唯一的区域类是CLCircularRegion(显然是圆形的)和CLBeaconRegion(基于与iBeacon的接近度).将来苹果可能会添加对自定义形状区域的支持,但从iOS 8开始,就是这样.

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

这篇关于是否可以具有自定义区域形状?核心位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆