eric eric - 2 months ago 11
iOS Question

How to disable user interaction on MKMapView?

How do you disable user interaction to an entire Map (MKMapView) in iOS? I just want to disable zooming, tapping, etc and show a static map.

[self.mapView setUserInteractionEnabled:NO]
didn't work. Found no working solutions via Google or other answers here on Stack (pls link if you find a working answer..). Targeting iOS 5. There should be an easier way to do this.

Rob Rob

The key is to disable zooms and scrolls, such as:

self.mapView.zoomEnabled = false;
self.mapView.scrollEnabled = false;
self.mapView.userInteractionEnabled = false;