Client error attempting to change layout margins of a private view 崩溃

使用QMUIKit iOS13崩溃

   if (@available(iOS 13,*)) {
                        UIEdgeInsets margins = contentView.layoutMargins;
                        contentView.frame = CGRectMake(-margins.left, -margins.top, margins.left + margins.right + contentView.frame.size.width, margins.top + margins.bottom + contentView.frame.size.height);
                    } else {
                        contentView.directionalLayoutMargins = value;
                    }

你可能感兴趣的:(Client error attempting to change layout margins of a private view 崩溃)