Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 mapView 上绘制多边形。我所做的是在主视图上添加一个透明视图,它与 mapView 的边界相匹配,然后我在它上面绘制。当我移动桌子时没问题,但是当我放大和缩小 Y 轴(纬度)上的多边形“反弹”时,X 轴没问题。你怎么看?
顺便说一句,我试图将透明视图作为子视图添加到 mapView,但随后它搞砸了用户交互。
如何才能做到这一点?帮助将不胜感激。
看看这篇文章。它有点旧,但仍然有效。他展示了如何在类似的 MKMapView 上绘制路线。
帖子是: http ://spitzkoff.com/craig/?p=65