masonry更新约束
2016-12-18 本文已影响989人
孟维学
[self.viewsetNeedsUpdateConstraints];
[self.viewupdateConstraintsIfNeeded];
[UIViewanimateWithDuration:0.5animations:^{
[self.viewlayoutIfNeeded];
}];
[self.viewsetNeedsUpdateConstraints];
[self.viewupdateConstraintsIfNeeded];
[UIViewanimateWithDuration:0.5animations:^{
[self.viewlayoutIfNeeded];
}];