MBH
MBH

Reputation: 16639

Suddenly xcode hided the views in interface builder Storyboard - iphone

The app was working normally, till I committed my code using Git for pushing the code online. The views were hidden from the interface builder (storyboard) suddenly.

It shows the views this way:

Screen shot from Xcode

the interface builder does not show the faded views as well:

Screen shot from xcode 2

I tried to check for the source code of the storyboard but nothing looks wrong. what can be a possible error that cause this problem ?

Upvotes: 0

Views: 177

Answers (1)

matt
matt

Reputation: 535945

You are looking at what happens when you have designed your views in a particular size class and then, when you look at the storyboard, you are not in that size class.

For example, let's say you happened to be in size class H:Regular W:Compact when you put "top line" into its superview in Interface Builder. At that time, the bottom of your Interface Builder canvas would have shown something like this:

enter image description here

That blue is supposed to be a warning that you are working in a specialized size class! But you, I am postulating, paid no attention to that warning.

Okay, so now you come back later and you are in size class H:Any W:Any. What you are showing in your screen shots is just what I would expect to see.

You would also see something like this at the bottom of the attributes inspector when you select one of the views:

enter image description here

That would show that you've accidentally installed your view in a specialized size class and not in the size class you are in.

Upvotes: 2

Related Questions