How do I detect a single tap on an instance of MKMapView? Do I have to subclass MKMapView and then override the touchesEnded method?
Thanks,
-Chris
How do I detect a single tap on an instance of MKMapView? Do I have to subclass MKMapView and then override the touchesEnded method?
Thanks,
-Chris
You cant at this time intercept touches on a map view, you can try layering an opaque view on there and see if it picks up touches...
Or depending on what you are trying to do, add an MKAnnotation (push pin, with a callout), so you have something to tap on - and then your map delegate will receive an event eg.
mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
Hope this will help : How to intercept touches events on a MKMapView or UIWebView objects?