美文网首页
Masonry动画

Masonry动画

作者: yazho | 来源:发表于2017-08-04 13:17 被阅读0次

// 告诉self.view约束需要更新[self.viewsetNeedsUpdateConstraints];

// 调用此方法告诉self.view检测是否需要更新约束,若需要则更新,下面添加动画效果才起作用[self.viewupdateConstraintsIfNeeded];

[UIViewanimateWithDuration:0.3animations:^{

[self.viewlayoutIfNeeded];

}];

相关文章

网友评论

      本文标题:Masonry动画

      本文链接:https://www.haomeiwen.com/subject/hlndbttx.html