Alfro
Alfro

Reputation: 1544

Storyboard has become unstable. Compiles but sometimes Auto Layout goes crazy

I have a strange issue with storyboard, it has become unstable. When I'm working and compile, sometimes I go this screen and see something like this:

enter image description here

Instead of this:

enter image description here

But the most strange thing, is most of the times It don't get fixed doing any change. The only thing I have to do is to go to storyboard, and then I don't know why, the project recompile storyboard again (which take ages...) and when it's recompiled and I go to the same screen it's displayed correctly again. It makes me loose some time and it's very annoying, as I need to recompile storyboard again when I have this issue. Does anyone can throw any light on how to fix this or what the source of the issue can be?

Upvotes: 1

Views: 47

Answers (1)

Mahesh Agrawal
Mahesh Agrawal

Reputation: 3358

This issue is coming because i think you are using size classes and designing your controllers in the storyboard by giving it as a fixed device size. Either change the controller size to inferred, or disable size classes.

Upvotes: 1

Related Questions