ios - NSLayoutConstraint change not working -
i have code below changing nslayoutconstraint
delay. value changing without delay , animation. please let me know issue code.
self.heightconstraint.constant = 100; [self.animatingview setneedsupdateconstraints]; [uiview animatewithduration:3.0 delay:1.0 options:uiviewanimationoptioncurveeaseout animations:^{ [self.animatingview layoutifneeded]; } completion:^(bool finished) { }];
try calling layoutifneeded method on superview of animatingview.
Comments
Post a Comment