0

I don't know what just happened, but I have a huge Xcode file. I saved it because I thought it was about to crash (part of the screen froze) I think re opened Xcode to get to the file again, and its all there, except when I went to the storyboard, it was ALL blank screens, with just background colors filled in... when I run it, it shows every element like it used to, and its all there, but in the storyboard, none of it is showing up, and if i click under a view controller on the left, all of the elements are grayed out and not selectable...

Help please :(

As you can see, the buttons, labels, and textfields are grayed out, and they disappeared from the view on the right: https://www.dropbox.com/s/6pcz58im7tq865i/XCODE.png?dl=0

Anthony Saltarelli
  • 345
  • 1
  • 4
  • 15

2 Answers2

0

Try select the views that had the wrong size and resize them to right one again by clicking on the "Any Any" button on the bottom after selecting a view.

enter image description here

hope this can help you.

Reming Hsu
  • 2,215
  • 15
  • 18
0

The problem is u used the Size Classes in your project.
As soon as you switch from One Size class to other Size class Some of constraint and UIElement are disable as the given Screen size is not able to fit that UI Component.

If u want to use the Size classes just flow this great tutorial Building Adaptive User Interfaces for iOS 8

If you don't wish to use Size Classes just disable it .

It will work.

To disable SizeClass select ViewController go to File Inspector and uncheck Use Size Classes

enter image description here

Rizwan Shaikh
  • 2,824
  • 2
  • 27
  • 49
  • THANK YOU SO MUCH! I checked this off, and then back on, and everything is back. :D – Anthony Saltarelli Jun 26 '15 at 15:27
  • Yes, excellent, Anthony Saltarelli is dead right - you turn Use Size Classes off then on again. Everything will re-appear. In my case the frames were then all wrong, but I just needed to go through each view and do "Update Frames" from the Resolve Auto Layout Issues menu. – sdsykes May 31 '16 at 07:06