在MKPointAnnotation上注册触摸事件

时间:2015-03-14 06:11:02

标签: swift mapkit

我想设置一个MKPointAnnotation,以便在点击时我可以调用另一个功能。有没有添加手势识别器或类似的东西?

1 个答案:

答案 0 :(得分:5)

mapView(_ mapView: MKMapView!,didSelectAnnotationView view: MKAnnotationView!)

中实施MKMapViewDelegate