MapView Annotation Callout action when opened
- by Paul Peelen
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