fix memory usage of updateConstraints
Showing
1 changed file
with
1 additions
and
2 deletions
@@ -361,9 +361,8 @@ static char kInstalledConstraintsKey; | @@ -361,9 +361,8 @@ static char kInstalledConstraintsKey; | ||
361 | } else { | 361 | } else { |
362 | [self.installedView addConstraint:layoutConstraint]; | 362 | [self.installedView addConstraint:layoutConstraint]; |
363 | self.layoutConstraint = layoutConstraint; | 363 | self.layoutConstraint = layoutConstraint; |
364 | + [firstLayoutItem.mas_installedConstraints addObject:self]; | ||
364 | } | 365 | } |
365 | - | ||
366 | - [firstLayoutItem.mas_installedConstraints addObject:self]; | ||
367 | } | 366 | } |
368 | 367 | ||
369 | - (MASLayoutConstraint *)layoutConstraintSimilarTo:(MASLayoutConstraint *)layoutConstraint { | 368 | - (MASLayoutConstraint *)layoutConstraintSimilarTo:(MASLayoutConstraint *)layoutConstraint { |
-
Please register or login to post a comment