Xcode 8 GM seed Storyboard layout issue

Posted on

Xcode 8 GM seed Storyboard layout issue

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?


Unfortunately even the official version of Xcode 8 has the same issue 🙁

Solution :

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

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

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

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *