Parcourir la source

1.修改iOS约束,取消禁止父视图使用Autoresizing。

Pen Li il y a 7 ans
Parent
commit
d3182fc40b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      common/LayoutConstraint/UIView+RAConstraint.m

+ 1 - 1
common/LayoutConstraint/UIView+RAConstraint.m

@@ -532,7 +532,7 @@ static const char RAMaker = '\a';
 
 - (void)ra_applyConstraints:(void(^)(RAConstraintMaker *maker))apply {
     if (self.superview) {
-        self.superview.translatesAutoresizingMaskIntoConstraints = NO;
+//        self.superview.translatesAutoresizingMaskIntoConstraints = NO;
         self.translatesAutoresizingMaskIntoConstraints = NO;
         
         RAConstraintMaker *maker = [self ra_maker];