MKAnnotationView and tap detection
I have a MKMapView . I added a UITapGestureRecognizer with a single tap. I now want to add a MKAnnotationView to the map. I can tap the annotation and mapView:mapView didSelectAnnotationView:view fires (which is where I'll add additional logic to display a UIView). The issue is now when I tap the annotation, the MKMapView tap gesture also fires. Can I set it so if I tap the annotation, it only responds? There might be a better and cleaner solution but one way to do the trick is exploiting hitTest:withEvent: in the tap gesture recognized selector, e.g. suppose you have added a tap gesture