博客> Masonry添加动画
Masonry添加动画
2019-07-16 18:47 评论:0 阅读:59 竹杳yao

[self.view setNeedsUpdateConstraints]; [UIView animateWithDuration:2 animations:^{ [self.redView mas_updateConstraints:^(ShiYue_LBMSConstraintMaker *make) { make.size.mas_equalTo(CGSizeMake(200, 200)); make.center.mas_equalTo(CGPointMake(100, 200)); }]; [self.view layoutIfNeeded]; }];

收藏
0
sina weixin mail 回到顶部