Why don't my views show up in Storyboards and are greyed out in the left pane?

后端 未结 2 1111
难免孤独
难免孤独 2020-12-10 18:26

\"enter

I am experiencing a weird bug in Storyboards.

I set up a UITable

2条回答
  •  心在旅途
    2020-12-10 19:19

    Just found an answer myself, it was because Size Classes were reset after I moved the project...

    Greying out views is Xcode's standard behaviour when the views are only set for a specific size class which is currently not selected!

    I had set the size classes for my UIViewController to Compact - Any, this is what it looks like in proper state:

    enter image description here

    The problem occurs when I change the size classes to another one (e.g. Any - Any):

    enter image description here

提交回复
热议问题