How to keep data associated with MKAnnotation from being lost after a callout pops up and user taps disclosure button?
In the showPinDetails: method, you can get the currently selected annotation from the map view’s selectedAnnotations property. That property is an NSArray but since the map view only allows one annotation to be selected at a time, you would just use the object at index 0. For example: – (void)showPinDetails:(id)sender { if (mapView.selectedAnnotations.count == 0) … Read more