ios - Update constraints programmatically? -
i have group of views in view controller, each set constraint of 15 previous. when press button elsewhere on vc, have 1 of views, near top, double in height. how rest of views snap new constraints?
nslayoutconstraint *sample = [nslayoutconstraint constraintwithitem:yourtargetview attribute:nslayoutattributeleft relatedby:nslayoutrelationequal toitem:yourtargetsparentview attribute:nslayoutattributeleft multiplier:0.00 constant:100]; [yourtargetsparentview addconstraint:sample];
Comments
Post a Comment