【发布时间】:2025-12-04 02:00:01
【问题描述】:
我正在开发 MapView 并且我想在 annotationView 上添加 longGesture 以删除特定的注释,为此我在委托中的每个 annotationView 上添加了 longGesture - (MKAnnotationView *)mapView:(MKMapView *)mapview viewForAnnotation:(id )annotation
但是 annoattaionView 没有检测到长手势。有没有办法在 mapview 的 AnnotationView 上添加长手势?
【问题讨论】: