MKMapViewZoom icon indicating copy to clipboard operation
MKMapViewZoom copied to clipboard

Does this work in iOS6?

Open ryanschmidt opened this issue 12 years ago • 2 comments

In my testing, the zoomLevel is no longer correct when using this class under iOS6. Has anyone else noticed this issue?

ryanschmidt avatar Jul 09 '12 15:07 ryanschmidt

Yeah i've noticed it too.

chadedrupt avatar Oct 22 '12 03:10 chadedrupt

Ok, so it seems its a combination of using Auto Layout and trying to set the zoom level before the view has layed out its subviews.

The code to set the zoomLevel uses the maps physical size. If you try to set the zoomLevel in viewWillAppear: the map will still have a size of 0,0;

Try putting the code in viewDidAppear: it seems that at this point the maps bounds and frame have been set

chadedrupt avatar Oct 22 '12 03:10 chadedrupt