How to open call out MKAnnotationView programmatically? (iPhone, MapKit)

Posted by StijnSpijker on Stack Overflow See other posts from Stack Overflow or by StijnSpijker
Published on 2010-02-03T17:16:43Z Indexed on 2010/03/16 7:36 UTC
Read the original article Hit count: 802

I want to open up the callout for an MKPinAnnotationView programmatically. Eg I drop 10 pins on the map, and want to open up the one closest to me. How would I go about doing this?

Apple has specified the 'selected' parameter for MKAnnotationView's, but discourages setting it directly (this doesn't work, tried it).

For the rest MKAnnotationView only has a setHighlighted (same story), and canShowCallout method..

Any hints if this is possible at all?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about mapkit