开发者

Convert MKPolygon to UIView

开发者 https://www.devze.com 2023-03-29 17:58 出处:网络
I have a MKMapView with a P开发者_如何学Colygon overlay that I need to convert into a UIView.I have the reference to the MKMapView and the MKPolygon, but I can\'t seem to find a way to pull the coordi

I have a MKMapView with a P开发者_如何学Colygon overlay that I need to convert into a UIView. I have the reference to the MKMapView and the MKPolygon, but I can't seem to find a way to pull the coordinates of the MKPolygon and convert them back into screen coordinates for the UIView.


You can convert polygon points to view coordinates (if that is what you need) like this:

iPhone SDK: Convert MKMapPoint to CGPoint

0

精彩评论

暂无评论...
验证码 换一张
取 消