Xcode 8 GM seed Storyboard layout issue

2019-01-17 12:14发布

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:

enter image description here

enter image description 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 :(

5条回答
Melony?
2楼-- · 2019-01-17 12:21

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. enter image description here

查看更多
男人必须洒脱
3楼-- · 2019-01-17 12:36

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

查看更多
我只想做你的唯一
4楼-- · 2019-01-17 12:36

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

查看更多
【Aperson】
5楼-- · 2019-01-17 12:38

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.

enter image description here

查看更多
看我几分像从前
6楼-- · 2019-01-17 12:42

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:-

enter image description here

查看更多
登录 后发表回答