开发者

Iphone Mapkit : displaying a image on a map

开发者 https://www.devze.com 2023-02-18 16:36 出处:网络
I spent the evening trying to get a simple UIImage on a map.I seen 2 Apple samples and one on github but they seem overly complex (one uses the Three20 network) and 2 out of 3 dont work in xcode 4.Als

I spent the evening trying to get a simple UIImage on a map. I seen 2 Apple samples and one on github but they seem overly complex (one uses the Three20 network) and 2 out of 3 dont work in xcode 4. Also one uses a bin file as its source.

Has anyone got a simple demo of a single image placed on a map. I been looking at MKOverlay and MKOverlayView.

I been trying to f开发者_高级运维ollow iPhone MapKit: Custom MKPolygonView with image draws upside down


I'd use a traditional MKAnnotationView and set the image property. This is the right approach if the image should not be scaled when the mapView is scaled.

0

精彩评论

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

关注公众号