move button towards target using constraints, no reaction?
问题 I would like the red button to be animated towards the leading position of the second button : Some examples showed how to change the "constant" with numbers, but I would like to put automatically at the leading position of the second button. I tried this, but the red button does not move, the animations log is correctly called though : - (void)updateConstr{ NSLayoutConstraint *newLeading = [NSLayoutConstraint constraintWithItem:self.redB attribute:NSLayoutAttributeLeading relatedBy