Search code examples
uiscrollviewxcode6autolayoutnslayoutconstraint

Cannot add new alignment constraints auto layout Xcode 6


Why I cannot add new alignment constraints on my scroll view ?

alignement


Solution

  • In order to add alignment constraints, you must select two or more items before pressing the Align button. This is how Interface Builder knows which two objects to align. You can select the items by dragging a box around them, or you can hold down Shift and select the items.