輸出詳情
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x155688ce0 H:[_UIButtonBarStackView:0x155681ea0(<=0)]>",
"<NSLayoutConstraint:0x155684cd0 'UIView-leftMargin-guide-constraint' H:|-(15)-UILayoutGuide:0x155684bb0'UIViewLayoutMarginsGuide' (Names: '|':_UIButtonBarStackView:0x155681ea0 )>",
"<NSLayoutConstraint:0x155684d70 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x155684bb0'UIViewLayoutMarginsGuide']-(15)-|(LTR) (Names: '|':_UIButtonBarStackView:0x155681ea0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x155684d70 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x155684bb0'UIViewLayoutMarginsGuide']-(15)-|(LTR) (Names: '|':_UIButtonBarStackView:0x155681ea0 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-08-01 14:18:13.647 CZY_iPad_new[3497:1093491] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x155689270 H:[_UIButtonBarStackView:0x155500400(<=0)]>",
"<NSLayoutConstraint:0x155687f40 'UIView-leftMargin-guide-constraint' H:|-(15)-UILayoutGuide:0x155687e20'UIViewLayoutMarginsGuide' (Names: '|':_UIButtonBarStackView:0x155500400 )>",
"<NSLayoutConstraint:0x155687fe0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x155687e20'UIViewLayoutMarginsGuide']-(15)-|(LTR) (Names: '|':_UIButtonBarStackView:0x155500400 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x155687fe0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x155687e20'UIViewLayoutMarginsGuide']-(15)-|(LTR) (Names: '|':_UIButtonBarStackView:0x155500400 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
如圖
BUG重現(xiàn)
從用戶名輸入框哟冬,再點到用戶密碼輸入框(或者點擊輸入框的順序反過來)
BUG分析
出現(xiàn)原因1、兩個輸入框類型不同(一個是密碼框,一個不是)
出現(xiàn)原因2、鍵盤類型不同(一個是默認,一個是numberPad鍵盤類型)