2

I am trying to get the UIScrollView in mkmapview. In iOS 5 my code is working fine but in iOS 6 app is crashing. I need scrollview to set the zoom level in mkmapview.

When I run my application in iOS5 it gives me scrollview, but in iOS 6 it returns MKSCrollContainerView

Here is my Code.

UIScrollView *scroll = [[[[mapView subviews] objectAtIndex:0] subviews] objectAtIndex:0];
[scroll setZoomScale:0.045551 animated:NO];
wim
  • 338,267
  • 99
  • 616
  • 750
Jai
  • 61
  • 2
  • possible duplicate of [Zoom in a MKMapView programmatically](http://stackoverflow.com/questions/1031787/zoom-in-a-mkmapview-programmatically) – Alexis King Feb 13 '13 at 06:05

0 Answers0