开发者

What does an MKAnnotation and MKAnnotationView represent?

What does an MKAnnotation r开发者_JAVA技巧epresent? Is it like notes on the map - like if you open up google map and click on little icons?


Yes, an annotation is a pin/note/icon placed on the map (MKMapView) at a specific location.

MKAnnotation is the protocol your annotation object needs to implement defining its location and title.

MKAnnotationView represents the appearance of the annotation. The view is requested by the MKMapView when your annotation object comes into the visible area.

See MapKit Framework Reference and the sample apps MapCallouts and WeatherMap.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜