MKMapView auto-layout fails with small superview

Originator:ilya.konstantinov
Number:rdar://28244619 Date Originated:Sep 10, 2016
Status:Open Resolved:
Product:Xcode Product Version:8.0
Classification: Reproducible:
 
MKMapView layouts with a 1,000 x 1,000 sized frame when placed into a "small" superview.

Note how a UIView with the same superview and same constraints does NOT exhibit the problem.

Steps to Reproduce:
1. Add a view controller with small simulated size (e.g. 320 x 400).
2. Add a Map View to the view controller and constraint it to the edges:
- leading = superview.leading
- trailing = superview.trailing
- top = topLayoutGuide.bottom
- bottom = bottomLayoutGuide.top
3. Save storyboard and close project (!).
4. Reopen project (and if needed, reopen storyboard)

Expected Results:
Map View in IB with size 320 x 400 and no misplaced state or constraints ambiguity.

Actual Results:
Map View in IB with size 1000 x 1000, misplaced state and constraints ambiguity.

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!