标签: swift mapkit
我想设置一个MKPointAnnotation,以便在点击时我可以调用另一个功能。有没有添加手势识别器或类似的东西?
MKPointAnnotation
答案 0 :(得分:5)
在mapView(_ mapView: MKMapView!,didSelectAnnotationView view: MKAnnotationView!)
mapView(_ mapView: MKMapView!,didSelectAnnotationView view: MKAnnotationView!)
MKMapViewDelegate