Xcode 6.1: UIViews disappear in UI builder when setting frames
I am new to Interface Builder and I try to practice it with a very simple one view
. Basically, I have 3 UIViews
on mine view controller
. The problem I'm running into is that whenever I set up a frame from 1 UIViews, the other 2 disappear.
Here is a short 7 second video of the problem: https://vine.co/v/OMlbMIdWMe5
If I run the app on my device, I only see 1 of the views (the 1 that I configured) - the other 2 remain hidden.
I am using Xcode 6.1
. What could be causing this?
*** EDIT: If I add constraint 1 to a view, it doesn't go away when I adjust the border of another view. I.e:
Add a constraint on ViewOne
and then resizing ViewTwo
will make it disappear ViewThree
(without any constraint).
So the solution is to add constraints to all 3 views, before realigning the frame of any of them. But still, what could be the cause of this problem?
source to share