objective c - How to edit/modify NSLayoutConstraint in Xcode? -


i drag tab view custom view, , set frame. xcode automatically generate several nslayoutconstraint objects decide frame during auto-layout.

http://oi41.tinypic.com/zn281s.jpg

as shown above, constraint indicates distance between right edge of tab view , right edge of super view.

however, not want constraint this. want constraint indecates distance between right edge of tab view , left edge of suber view. or, width of tab view itself.

how should do?

btw, tried delete constraint, xcode generated constraint immediately. therefore not add 1 (and not know how add one, either).

there minimum number of constraints required on each axis of view, hence should add new constraint first before deleting existing 1 make sure xcode understands how layout views properly.

try add new constraint clicking view , click on middle button @ bottom right options in screenshot:

enter image description here


Comments