Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 927
Gargo Avatar asked Oct 03 '13 17:10

Gargo


2 Answers

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.

like image 115
Keith OYS Avatar answered Nov 17 '22 13:11

Keith OYS


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:

enter image description here

like image 1
Groot Avatar answered Nov 17 '22 13:11

Groot