I want to set up a MKPointAnnotation so that when it is tapped I can call another function. Is there anyway to add a gesture recognizer or something like that?
Asked
Active
Viewed 1,670 times
3
bhzag
- 2,814
- 7
- 21
- 38
-
duplicate? http://stackoverflow.com/questions/15292318/mkmapview-mkpointannotation-tap-event – gabeio Mar 14 '15 at 06:14
1 Answers
6
Implement mapView(_ mapView: MKMapView!,didSelectAnnotationView view: MKAnnotationView!) in MKMapViewDelegate
songchenwen
- 1,342
- 9
- 14