PDA

View Full Version : Mapkit: Pin annotations, how to put code behind them?




doanelinde
Jul 30, 2009, 10:49 AM
How do you put code behind a pin annotation so that if the user selects a pin I can run code to, for example, jump to another view?



dejo
Jul 30, 2009, 10:59 AM
Set up a mapView:annotationView:calloutAccessoryControlTapped:method in your MKMapViewDelegate.