XCode Storyboard Issue - ios

I cant see the Labels, Button etc in the View or their constraints though the Labels and Button appears on the side of the storyboard. And when you run the program in the simulator you can see that they are there.
The project from my colleague who uses XCode 6.3.1 and I am using XCode 6.3.2
and he doesn't have this issue. When he updated his to to the same version I have he had the same problem; so he went back to the previous version 6.3.1.
Now the problem persisted on my device even when I removed the 6.3.2 and substitute it with 6.3.1
stackoverflow prevented me from uploading the images but I can send it by email to anyone to see the screen shots

I think I found the answer but yet the labels seems to be shifted out of the view. but the Answer is: This problem occurs when one of the users design the view controller using the compact or any other dimension other than Any X Any. to fix the problem, click in any of the objects created ( label, button..etc), and go the attribute inceptor, and scroll down to the bottom and you will find a check box with the word installed. there will probably be more than one. Look for the one that is not highlighted, and highlight it. This should fix the problem.

Another faster solution instead of going over each object you can deselect
Use Auto Layout
Use Size Classes
then select them again

Related

Can't find containerView Xcode 6.4

Today I tried to use a container view in Xcode and when I searched in the bar at the bottom of the Library menu, I could not find it. I have also searched through the entire list and can not find it.
Does anyone have any idea what might be occurring. I am using Xcode 6.4.
Any suggestions will be much appreciated.
It looks like the reason I can't find it is because I am using XIB's and not a storyboard (which is what I used in the past when I used a container view).
Thanks to the other answers which helped me come to this conclusion.
I am using Xcode V6.4 and searched by the name UIContainer/container in the object library section of utilities. and It is showing the container view.
You can find it in your storyboard. See image bellow.
This is definitely a bug that is still present in Xcode 7.3.1.
However, I kept playing with switching tabs and looking into other storyboards to see if I could make it find it from a different file. It turns out that after a navigating thru some of my storyboards and seeing the storyboard form the main editor (instead of doing it from the assistant editor) I was able to find it.
Hope this helps!
Oddly, there seems to be a bug in Xcode 6.4. Once I changed the tab in the lower right navigator and came back to the Objects tab, the search/filter worked again. I had the same exact problem in the same exact version of Xcode.
Like kriztho said, container view won't be listed in the object library when viewing storyboard from the assistant editor for some stupid reason. I'm using Xcode 9, and this is still an issue. Right when I switched storyboard to the standard editor (Cmd + return on Mac), the container view was listed once again in the object library.

Using GitHub with XCode 6.2 causes Storyboard UI Elements to Disappear

My partner created a project in XCode and committed it to GitHub. No new changes were made. When either of us tries to bring down the project on our computers, the Storyboard appears to be missing every single UI element (UITextField, UIButton, UILabel, and UITextView). The View Controllers show up, but all of them are empty / blank. In the list view, the elements are there but are grayed out. The project still runs perfectly. If I try to open the Storyboard with an external editor, it still exists as an XML file. Apparently, the elements are still there but they simply fail to show up when the Storyboard is displayed. We are both using the latest XCode, Version 6.2 (6C131e). My partner just upgraded to the latest version of Yosemite a couple of days ago, and I am running OSX 10.9.5. The code is in Swift.
It is because your Size Class enabled. And for size class enabled, you can valid some of the elements and constraint at certain size. If you change the size at the bottom, they will be shown(not grayed out)
After the problem happened again, I fixed it the same way as above with the Size Class set to Compact/Any, and this time did a force commit on ALL files even though Git didn't seem to think they needed to be uploaded. That time when I checked the project out again, I could see the UIElements in the Compact/Any without having to change it back to Compact/Any again because it was already showing that way.

Xcode Storyboard textview error getting cut in middle

I have a strange error in Xcode 5.0.2.
I just made a new project with the tab bar template. In the views, there is a textview. It is for some reason cut in the middle (see pic below).
I also have same problem with other projects. I have not tampered with the project in any way yet.
Anybody has an idea why and how to fix it?
Thanks!
EDIT: extra screenshot
I was having the same issue. I noticed if I changed the View -> Mode from the default "Scale To Fill" to "Aspect Fill" it fixed the issue. Oddly, changing it back didn't cause the issue to resurface, so it definitely seems to be a bug with the interface builder in Xcode.
The error is known with Apple and merged with another BUG. Hope they will fix soon.
I had the same thing some time ago and asked here on SO.
In my case it was caused by Buttons with text, not text view.
I found out that the line of the horizontal cut was related to the vertical position of the otehr buttons.
I did not solve it therefore I deleted all UI elements from that view (only 3 in my case) and re-created them. That is, of course just a workaround but it worked. The app still works nicely.
After I did so SO user Bio Cho suggested the solution to change the text from plain to attributed and back to plain.. To late for me to try it, but you could give it a try. See UIButton Title does not appear or is cut - bottom most label only

Strange bug with resizing of UI elements in xCode 5? Video is attached

link to a video with bug
I simply created a project in xCode. Then I added any UI element to a view. Then I tried to resize this item to left and to right. No code, Interface Builder was used only.
I have checked with some types of projects for iOS and with UILabel and UIButton. The result is the same: when I try to resize the item from the left then it moves the parent view/viewcontroller instead.
Uncheck "Siblings and Ancestors" under Resizing Behavior in Xcode 5 Storyboard.
Voila! As such, resizing your UI elements will not cause your view controllers to move.
You need to uncheck the "Siblings and Ancestors" in your .xib/.storyboard file. See below screenshot of how to toggle this behavior on and off:
As has been said before, you must uncheck the "Siblings and Ancestors" option under Resizing Behavior in the Xcode 5 Storyboard.
The specific purpose of this feature is to be able to resize large groups of objects all at once. For instance, lets say that you have a Table View and you resize one of the cells. In this case, it would seem petty, since you would just have to resize the Table View Controller, but it becomes extremely handy once you have layered objects such as that.
Sorry for the somewhat duplicate answer, but you did ask for an explanation of why a feature like that would be added.
Additionally I have found out that another computer with the same version of xCode works with the same copy of project normally.
I didn't know how to solve this problem without uninstalling of xCode.
So I uninstalled it using AppCleaner and installed it again.

Why does the iOS Simulator show only a blank view/window?

I'm new to iOS development. I used the Interface Builder to add text fields and buttons to my view. When I run the app, the iOS Simulator only shows an empty beige screen. What am I missing? The console doesn't show any error.
It is because you have not connected your view to your File's Owner.
To do this Right Click on the View, Control Click on the Oultlet of your View and drag it to the File Owner.
This shall solve your problem.
Cheers
I reckon it's because you have AutoLayout turned on in your storyboard, but haven't set any constraints.
Follow my instructions in the following article, to confirm if this is true.
AutoLayout problem
Basically, with XCode 6, if you have AutoLayout turned on, you must set constraints on every single control... otherwise your screens will look fine within XCode, but the controls in your screen could (and will) end up anywhere and in any size when the app is run.
It's like designing a beautiful webpage, then displaying it in an angry, drunk, disorientated browser.
XCode is really unintuitive, and unhelpful for beginners... but once you learn the rules of AutoLayout (along with its many quirks), it's reasonable useful.

Resources