Xcode 9.2 Interface builder not showing objects during runtime - ios

Out of the blue today, I wanted to add a UIButton via Interface builder, but I noticed the button doesn't appear on the screen when I run the app?!
I have multiple views, and on all of them adding an object (button, textview etc) via IB will not show when the app is build and runned?!
I cleaned the project, removed derived data, restarted xcode, even used an backup (previous) version of the app, no joy...
Any others experiencing this issue? this is on xcode 9.2

Related

Xcode's XIB and Storyboard's UIElements are not visible

I am using Xcode 11.5, sometime UIElements on XIB or Storyboard file are not visible. Only blue placeholder rectangles are visible. If clean the project, delete derived data, quit and reopen the project it works but sometime not. I faced same issue in older Xcode version also. Any solution?

IBDesignable drawings not displaying in storyboard

I am having an issue with IBDesignable elements not appearing in the storyboard view. It seems to be particular to my machine/version of Xcode (2015 11" Macbook Air running MacOS 10.14.4 and Xcode 10.2.1) and not an error in the code, as the same project displays fine when run on a 13" Retina (Xcode 9.2). It also displays correctly in the simulator.
I have tried cleaning and rebuilding the project, creating a new project, restarting Xcode, restarting the computer, deleting derived data, and updating to the latest version of Xcode but have had no success.
When I attempt to run Editor > Debug Selected Views, I get the following error: "Could not attach to pid: #### Error 1."
Below is an image showing my IBDesignable class and the resulting storyboard presentation.
Any help with this would be greatly appreciated!
UPDATE:
I also noticed that when I select the designable view, the inspector reads "Designables Updating," as in the image below:
This finally solved my problem:
https://stackoverflow.com/a/26720740/5291486
To sum up, I enabled Editor > Automatically Refresh Views and then clicked Editor > Refresh All Views.
Verify if the code in your draw function is correct.

Misaligned views in Interface Builder in XCode 8.3

After updating XCode to the latest version (8.3 [8E162]), I am experiencing some weird behaviour in Interface Builder. More specific, the containers of the UI elements that I have in the storyboard, are misaligned with the rendered controls. When running on device/simulator, everything looks OK.
Any ideas how to fix this?
P.S: I am not using a secondary display, and I have tried to open the storyboard separately and the issue is still there.

XCode Storyboard is empty and changes not visible on it

I have a serious problem on XCode. I can not see my storyboards correctly even they are full of elements. Sometimes elements are visible after I restart the XCode but later it happens again. Another issue is that even I change fonts or change locations of elements its not visible on storyboard until I restart the XCode.
XCode version is: 8.2.1 (8C1002)
You can see in the image that storyboard is transparent.

Running first singleview ios application on Xcode

I'm writing a very first program for iOS in Xcode 6 (Single-view application).
I added a label and ran a simulation.
I have seen this label on a simulator. But when i added an additional button on a Main.storyboard's ViewControler and rebuilt the project - the was no any button. It seems like simulator ran first version without the button. How can i launch last version of my project on a simulator?
Thanks.
Xcode 6 run by default with auto layout enabled along with size classes also enabled..
you can check that by disable both of them by going to your storyboard and show file inspector (you'll find it on the right side pane)
And then rerun the app.. if you find the button in its place.. then you should start learn how to use the auto layout cause it's essential now by apple to support any universal app you wish to create in the future .

Resources