Xcode 8 GM seed Storyboard layout issue

孤街醉人 提交于 2019-11-27 01:37:12

问题


I've tried XCode 8 GM seed and I've found out a serious issue in the Storyboard, either you use Auto Layout or disable it, Xcode 8 messes up with a UIView included into a UIScrollView, as shown here:

The wired thing is that if I resize that embedded UIView into the ScrollView, quit Xcode and open my project again, that UIView gets bigger again, with no sense, all the times.

Have you encountered the same issue?

Do you think Apple fix this big bug with the Official release of XCode 8?

Thanks!

UPDATE Unfortunately even the official version of Xcode 8 has the same issue :(


回答1:


if you are using Auto Layout then, Please Select one by one UIViewController Scene in Main Storyboard. Click Update Frame, it will automatically adjust all frames of a selected view controller.




回答2:


The only workaround I've found for this is to make the view controllers size "fixed" using the Size Inspector.




回答3:


You can change Simulated size of view controller from size inspector. Go to size inspector and change simulated size to Free form. You can set width and height of view as you like. To view the screen as it was in iOS 9, change width and height to 600.




回答4:


If you are compiling your build for iOS 9.3 or earlier versions then you can just change the builds for option to 9.3x.

Change builds for to 9.3:-




回答5:


EDIT: Finally Apple fixed this issue with Xcode 8.2.1, good job Apple devs :)



来源:https://stackoverflow.com/questions/39394316/xcode-8-gm-seed-storyboard-layout-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!