Quote:
Originally Posted by craiglittle
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 viewForCalloutAccessoryPosition: method doesn't exist in the 3.0 Beta 3 SDK. So my question is, has anyone succeeded in annotating a map in Beta 3? When I call addAnnotation: on the map view, an exception is thrown from fairly deep down in Apple's code. I've filed a bug report.