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

Discussion in 'iOS Programming' started by doanelinde, Jul 30, 2009.

  1. doanelinde macrumors member

    Joined:
    Jul 24, 2009
    #1
    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?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Set up a mapView:annotationView:calloutAccessoryControlTapped:method in your MKMapViewDelegate.
     

Share This Page