MapView Annotation Callout action when opened

Posted by Paul Peelen on Stack Overflow See other posts from Stack Overflow or by Paul Peelen
Published on 2010-04-12T12:21:29Z Indexed on 2010/04/12 12:23 UTC
Read the original article Hit count: 624

Hi,

I have a mapview with serveral annotations. Every annotation has a leftCalloutAccessoryView which is a UIViewController class. The reason for this is that I want every annotation to load some data from the server, and add the result of that data to the annotation subTitle. This all works perfectly, except that I dont want to load all that data when my app is started, but I want to the remote call to be done only when the callout bubble is opened.

Does anybody know how I can do this? The viewWillload, viewDidLoad ect. don't work in this case. Any examples as well?

Best regards, Paul Peelen

© Stack Overflow or respective owner

Related posts about iphone

Related posts about mapkit