How to trigger MKAnnotationView's callout view without touching the pin?

iphone

Solution

Ok, here's the solution to this problem.

To display the callout use `MKMapView`'s `selectAnnotation:animated` method.

Problem

I'm working on a `MKMapView` with the usual colored pin as the location points. I would like to be able to have the callout displayed without touching the pin. How should I do that? Calling `setSelected:YES` on the annotationview did nothing. I'm thinking of simulate a touch on the pin but I'm not sure how to go about it.

Original source

Related problems