Procházet zdrojové kódy

Use supportsActiveProperty

Jonas Budelmann před 10 roky
rodič
revize
cd48496490
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Masonry/MASViewConstraint.m

+ 1 - 1
Masonry/MASViewConstraint.m

@@ -298,7 +298,7 @@ static char kInstalledConstraintsKey;
 }
 
 - (void)deactivate {
-    if ([self.layoutConstraint respondsToSelector:@selector(setActive:)]) {
+    if ([self supportsActiveProperty]) {
         self.layoutConstraint.active = NO;
         [self.firstViewAttribute.view.mas_installedConstraints removeObject:self];
     } else {