[self.viewsetNeedsUpdateConstraints];
[self.viewupdateConstraintsIfNeeded];
[UIViewanimateWithDuration:0.5animations:^{
[self.viewlayoutIfNeeded];
}];
[self.viewsetNeedsUpdateConstraints];
[self.viewupdateConstraintsIfNeeded];
[UIViewanimateWithDuration:0.5animations:^{
[self.viewlayoutIfNeeded];
}];
本文标题:masonry更新约束
本文链接:https://www.haomeiwen.com/subject/oohzmttx.html
网友评论