Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 autolayout has ruined my project

The new Xcode 8 update to use trait variations has resulted in all of my storyboard view controllers losing their autolayout integrity. It was all previously set out on the interface builder in the regular width | regular height setting (that "one size fits all" square you get by default when you make a new project). But it's now been changed to represent an iPhone 6.

I want to be able to change it back to the way it was before, but the "use size classes" checkbox has been removed and replaced with "use trait variations".

like image 862
Matt Spoon Avatar asked Sep 19 '16 06:09

Matt Spoon


1 Answers

Had a similar issue. The solution here works for me: https://stackoverflow.com/a/39589860/1751266

Basically revert your storyboard back to the XCode 7 format. Unfortunately you have to do it every time you make a change to the storyboard :/

like image 175
CMash Avatar answered Nov 15 '22 14:11

CMash