ios - How to add leading constraint to the right edge of the UILabel in storyboard? -
how can achieve equivalent of in storyboard?
[cell addconstraint:[nslayoutconstraint constraintwithitem:namelabel attribute:nslayoutattributeright relatedby:nslayoutrelationequal toitem:cell.contentview attribute:nslayoutattributeleft multiplier:1.0 constant:200.0]];
very easily, in storyboard, control click on view , drag other view. click settings of constraints on right:

and click on select , edit take constraints settings:

Comments
Post a Comment