Yes, including the callout views and responding to callout tap events. I would recommend following the Docco rather than relying on sample code, as most of the sample code I have seen has been inaccurate.
One thing I will point out that is unclear in the documentation is creating the view for the callout. The viewForCalloutAccessoryPosition: method can return any type of UIView descendant, but if you want to respond to user taps (via the mapView:annotationView:accessoryButtonTappedAtPosi tion: method) then you have to create it as a UIButton. The docco doesn't explicitly state this, but on my 12th reading I noticed that the docco hints at this.
__________________
The important thing is not so much that every child should be taught, as that every child should be given the wish to learn.
- Sir John Lubbock.
|