Xcode doesn't show my buttons, labels, text fields and views

Xcode does not show all buttons, text fields, etc. I have in my storyboard. As you can see in the image below, somehow all my elements appear with a watermark in the inspector of the storyboard element on the left. Why is he doing this? How can i fix this? It drives me crazy because I donโ€™t see where my elements are when I try to add more ...

enter image description hereenter image description here

How can I solve this problem and why is Xcode so buggy?

+5
source share
2 answers

You have the size class enabled (note the blue bar in the center at the bottom). I assume that all these representations are absent in this class of sizes. Click on the panel, return it to "Any x Any".

+4
source

I had a similar problem, some of my IBOutlets (shortcuts) showed up on the storyboard, I didn't have AutoLayout warnings / errors, and everything seemed fine, but some of the points didn't show up on the Simulator. Everything became even more complicated when I noticed that SOME EXHIBITIONS EXECUTE .. strange ..

I ended up transferring the call to show the view controller in a GCD method like this (quick code):

dispatch_async(dispatch_get_main_queue()) { [unowned self] in let vc = self.pages[0] self.setViewControllers([vc], direction: .Forward, animated: false, completion: nil) } 

And that solved it.

0
source

All Articles