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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -