Welcome to the Treehouse Community
Looking to learn something new?
Missing elements on Main.storyboard
I am new to the board so hello to everyone :)
I was following a tutorial "Build a Simple App with Objective-C" and my main.storyboard alongside all the elements in it disappeared. The application still runs but I am not able to interact with the storyboard anymore.
I do not recall doing anything that I have not done before. I think removed some of the restrictions from my labels before it happened but I am not sure.
I was reading online and it seems that some people had this problem when using "Auto layout" I tried enabling/disabling it but nothing happened.
This is what my app looks like right now. http://postimg.org/image/t1j8xtc8r/
Thanks a lot for the help.
This happened to me once.
Look in the View Controller Scene if you see all the elements listed there, there's hope! They haven't been deleted.
The problem, in my case, was that the size class under the Storyboard didn't match the size class for an element in the Attributes inspector.
First look to see what size class you have for the Storyboard. The default is wAny hAny. (You should see this in the middle of the bar just below the Storyboard.)
Then click on any element (button, label, etc.) in the Storyboard. Click on its Attributes inspector. Scroll to the bottom and see what, if anything, is marked as installed.
If, e.g., your Storyboard is wCompact hAny, then wC hAny should be checked as Installed.
Once I'd straightened this out all my elements came back.