user2275045
user2275045

Reputation: 163

Interface Builder Views not showing up

All of my view controllers suddenly had this bug. Nothing shows up in interface builder, but it works fine when I run it. This makes it so I can't edit my views in interface builder. Whats going on here? Xcode 6.1 GM ios 8.1 B1. Swift.enter image description here

Upvotes: 13

Views: 4385

Answers (6)

Sarabjit Singh
Sarabjit Singh

Reputation: 1824

This because of size classes. May be you uninstall some constraints in wAny and hAny. You need to re-install these constraints. After that you are able to see your view again.

Upvotes: 0

user6733740
user6733740

Reputation: 49

I also encountered similar problems.And I solve this problem by check install...

screenshot

Upvotes: 0

user2275045
user2275045

Reputation: 163

Thank you all for the help. I had designed the views in regular regular and then changed it to any any unknowingly.

Upvotes: 0

zisoft
zisoft

Reputation: 23078

I assume you made your design in a size class other than wAny / hAny. Switch back to the size class you used for design and your controls will reappear.

Upvotes: 13

Pulsarman325
Pulsarman325

Reputation: 224

I believe Harrison is correct, the greyed out views on the left mean they have been deleted for a certain size class, try changing the size class and see if they are active in a different size class

Upvotes: 0

Harrison Weinerman
Harrison Weinerman

Reputation: 86

This happens when you press Command+Delete, meant for removing objects from only certain size classes. If you just did it, you can undo it, but otherwise I looked around and I can't find a way to turn them back on. The only menu references to it are after you press Command+Delete to "Undo Turn Off", so it may be a bug right now unless theres an alternative way to turn the layers back on.

Upvotes: 1

Related Questions