开发者

adding ovelay on a map(objective c)

How to add ove开发者_JAVA技巧rlay on a map in objective c? (has any body tried it in iphone os 4.0)?


here is a good article on using the MKPolyline overlay to add a route type annotation to your map. It should give you an idea how to add any of the other overlays. just implement the

- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id )overlay

on your map delegate and give it the type of overlay your are drawing.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜