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?

+3


source to share


2 answers


This is a problem with Xcode 6.1 and is reported on apple. A similar post can be found here.



WORKAROUND: I found that you can edit constraints in the right pane of the storyboard editor, in the size inspector. It doesn't really prove that it's tiring.

+4


source


You can disable autoplay if you don't need it, which helps. Otherwise wait for the next patch ~



-1


source







All Articles