disable MKMapView and the nav bar auto-adjustment (iOS 8)

Originator:mitch
Number:rdar://18322790 Date Originated:12-Sep-2014 03:01 PM
Status:Open Resolved:
Product:iOS Product Version:8.0 GM
Classification: Reproducible:Always
 
Summary:
MKMapView, if partially behind a nav bar, will factor that in when setting a map rect. This makes it so that the visible portion of the map (the potion not covered) displays the full map rect being set. I have a complex layout with animations, and this undocumented functionality is breaking functionality. I want to adjust the layout using edgePadding manually, and not have this automatic behavior.

Steps to Reproduce:
1. Create a MKMapView and add it to a view controller in a UINavigationController. The map view should be be placed so that the top portion is completely under the nav bar.
2. Set the visibleMapRect to a known area

Expected Results:
The known area takes up the entire map, including under the nav bar.

Actual Results:
The known area is covered in the portion of the map not under the nav bar. The portion of the map under the nav bar as a result shows the area north of the known area.

Version:
iOS 8 GM

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!