Saved MKMapView constraints ignored when opened in Xcode 8
| Originator: | flashslinger | ||
| Number: | rdar://28325425 | Date Originated: | 9/15/2016 |
| Status: | Closed as duplicate | Resolved: | |
| Product: | Xcode | Product Version: | 8 (8A218a) |
| Classification: | UI/Usability | Reproducible: | Always |
Area: Xcode Summary: Constraints on any MKMapView in a storyboard appear not to be saved, and the map view moves to the upper left corner of the view and resizes to 1000 x 1000. Resizing the view in the Utility pane to something other than 1000 x 1000 allows the user to restore the constraints in the view to what they were when the project was saved. Steps to Reproduce: 1) Create sample Single View iOS app. 2) Add MapKit framework to project. 3) Add MKMapView to storyboard. 4) Add leading, trailing, top and aspect ratio constraints 5) Build and run. A map appears in the view as expected. 6) Save project and close Xcode. 7) Open project in Xcode. The map view has resized to 1000 x 1000 and has moved to the upper left corner of the view it is in. 8) Change the size of the map view in the Utility pane to 100 x 100. 9) You should now be able to revert back to the constraints set in step 4. Expected Results: Steps 8 and 9 above should not be necessary, I should be able to open my project with constraints set as they were when I closed it.
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!