Browse Source

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

Pen Li 7 năm trước cách đây
mục cha
commit
d3182fc40b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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];