第一步:用Masonry设置指定view的 约束
第二步:
- (void)doConstraintAnimation {
[self setNeedsUpdateConstraints];
[self updateConstraintsIfNeeded];
[UIView animateWithDuration:.3 animations:^{
[self layoutIfNeeded];
}];
}
第一步:用Masonry设置指定view的 约束
第二步:
- (void)doConstraintAnimation {
[self setNeedsUpdateConstraints];
[self updateConstraintsIfNeeded];
[UIView animateWithDuration:.3 animations:^{
[self layoutIfNeeded];
}];
}