Search code examples
iosuser-interfaceresizeinterface-builderxcode5

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.


Solution

  • 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.