Strange error with resizing user interface elements in xCode 5? Video attached

link to the video with the error

I just created a project in xCode. Then I added a view element to the view. Then I tried to resize this element left and right. No code, Interface Builder was used.

I 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 on the left, it instead moves the parent view / viewcontroller.

+6
source share
4 answers

Uncheck the box “ Siblings ” in the Resize section of the Xcode 5 storyboard.

Voila! Thus, resizing user interface elements will not cause your controllers to move.

+13
source

You need to uncheck the “Siblings” checkbox in the .xib / .storyboard file. The following is a screenshot of how to enable and disable this behavior:

enter image description here

+1
source

As already mentioned, you must clear the “Siblings” checkbox in the Resize section of the Xcode 5 storyboard.

The specific purpose of this function is the ability to resize large groups of objects at the same time. For example, let's say you have a Table View and you resize one of the cells. In this case, it looks small, since you just need to resize the Table View Controller, but it will become extremely convenient if you have layered objects such as.

Sorry for the somewhat duplicate answer, but you asked for an explanation of why such a feature was added.

+1
source

In addition, I found out that another computer with the same version of xCode is working with the same copy of the project.

I did not know how to solve this problem without removing xCode.

So, I uninstalled it using AppCleaner and installed it again.

0
source

Source: https://habr.com/ru/post/955202/


All Articles