这是来自我的控制台的一个错误,涉及我的一些视图组件的自动布局我有一个视图,有两个子视图,一个滑动视图和一个 SMPageControl 视图。
以下是我尝试运行应用程序时出现的约束错误,但仍试图理解自动布局:
"<NSLayoutConstraint:0x814c820 V:|-(385)-[SMPageControl:0x81485b0] (Names: '|':UIView:0x8144be0 )>",
"<NSAutoresizingMaskLayoutConstraint:0x8152c60 h=--& v=--& V:[UIView:0x8144be0(460)]>",
"<NSLayoutConstraint:0x814a830 V:[SMPageControl:0x81485b0]-(>=116)-| (Names: '|':UIView:0x8144be0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x814a830 V:[SMPageControl:0x81485b0]-(>=116)-| (Names: '|':UIView:0x8144be0 )>
Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
- -谢谢你的帮助!