Sfoglia il codice sorgente

Use supportsActiveProperty

Jonas Budelmann 10 anni fa
parent
commit
cd48496490
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {