5

Is there a way to prevent/limit the zooming. I want to allow the user to zoom to my set fixed limits. The option to do with:

- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated

Is disgusting because first you zoom in and when you are done it automatically zooms out. The goal is to stop zooming when the user reach the zoomlimit, even if he proceed with the gesture.

To derive from MKMapView in iOS6 is not purposeful because there no scrollView methods to override :(

Any other ideas?

Craig
  • 8,093
  • 8
  • 42
  • 74
mMilk
  • 245
  • 1
  • 2
  • 10
  • With 100+ votes and an accepted answer this question may help: http://stackoverflow.com/questions/11830516/prevent-scrolling-in-a-mkmapview-also-when-zooming – Craig Nov 16 '12 at 01:41
  • @Craig: there was a bounty worthing 100 points, but not 100+ votes. – vikingosegundo Nov 19 '12 at 18:22

1 Answers1

0

Try this:

[mapView setCenterCoordinate:myCoord zoomLevel:13 animated:YES];
Bart
  • 19,692
  • 7
  • 68
  • 77
Dilip Lilaramani
  • 1,126
  • 13
  • 28