I have an MKMapView as the root view for a UINavigationController. The map displays MKPinAnnotationView objects for several cities, and each MKPinAnnotationView has a disclosure button. When the user touches the button, I want to push a new view onto the screen (let’s call it DetailViewController) with information about that specific city.
What I can’t figure out is how that button can tell the DetailViewController which city it needs to display. What is the best approach for this situation? I suspect it has to do with target-action pairs and selectors, but I’m not clear enough yet on those subjects. I’d appreciate any help.