Iphone Mapkit:在地图上显示图像

时间:2011-03-21 21:52:04

标签: ios iphone mapkit

我花了一个晚上试图在地图上得到一个简单的UIImage。我看到2个Apple样本和一个在github上,但它们看起来过于复杂(一个使用Three20网络),3个中的2个不能在xcode 4中工作。另外一个使用bin文件作为其来源。

是否有人在地图上放置了单个图像的简单演示。我一直在看MKOverlay和MKOverlayView。

我一直在努力追随 iPhone MapKit: Custom MKPolygonView with image draws upside down

1 个答案:

答案 0 :(得分:2)

我使用传统的MKAnnotationView并设置image属性。如果在缩放mapView时不应缩放图像,这是正确的方法。