Explorar el Código

Use supportsActiveProperty

Jonas Budelmann hace 10 años
padre
commit
cd48496490
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {