Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 294
user2275045 Avatar asked Oct 05 '14 20:10

user2275045


2 Answers

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.

like image 78
zisoft Avatar answered Oct 18 '22 19:10

zisoft


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.

like image 35
Harrison Weinerman Avatar answered Oct 18 '22 17:10

Harrison Weinerman