Auto Layout Constraint With Dynamic Variable?
问题 Is it possible to have an Auto Layout constraint ( NSLayoutConstraint ) with a dynamic constant/multiplier? For example, this would be a bog standard NSLayoutConstraint : NSLayoutConstraint *constraint = [NSLayoutConstraint constraintWithItem:obj1 attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:obj2 attribute:NSLayoutAttributeLeft multiplier:1 constant:0]; Then here would be an alteration of that constraint but a dynamic variable in the constant: NSLayoutConstraint