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:

enter image description here

and click on select , edit take constraints settings:

enter image description here


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -