Masonry 设置完约束之后 如何以动画的方式完成约束的设置

第一步:用Masonry设置指定view的 约束

第二步:

- (void)doConstraintAnimation {
    [self setNeedsUpdateConstraints];
    [self updateConstraintsIfNeeded];

    [UIView animateWithDuration:.3 animations:^{
        [self layoutIfNeeded];
    }];
}

猜你喜欢

转载自blog.csdn.net/allanGold/article/details/84255372