ios 에서 로그인 창에서 키보드가 올라올 때 에러가 발생합니다.
iphone 8 에서는 에러가 발생해도 로그인 버튼을 클릭하면 정상 작동하는데,
iPhone 11 pro max 에서는 같은 에러가 발생하고 로그인 버튼을 눌렀을 떄 먹통이 되버리네요.
왜그럴까요?
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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x600001e2e580 h=--& v=--& _UIToolbarContentView:0x7fd5a37128e0.width == 0 (active)>",
"<NSLayoutConstraint:0x600001e36bc0 H:|-(0)-[_UIButtonBarStackView:0x7fd5a375cd30] (active, names: '|':_UIToolbarContentView:0x7fd5a37128e0 )>",
"<NSLayoutConstraint:0x600001e36c10 _UIButtonBarStackView:0x7fd5a375cd30.trailing == _UIToolbarContentView:0x7fd5a37128e0.trailing (active)>",
"<NSLayoutConstraint:0x600001e27020 'IB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x7fd5a365b4d0] (active, names: '|':_UIButtonBarButton:0x7fd5a365b0f0 )>",
"<NSLayoutConstraint:0x600001e2c730 'IB_Leading_Leading' H:|-(>=5)-[_UIModernBarButton:0x7fd5a6041470] (active, names: '|':_UIButtonBarButton:0x7fd5a60412a0 )>",
"<NSLayoutConstraint:0x600001e27070 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a365b4d0]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x7fd5a365b0f0 )>",
"<NSLayoutConstraint:0x600001e2c780 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a6041470]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60412a0 )>",
"<NSLayoutConstraint:0x600001e2d4f0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x7fd5a6042c70'Done'] (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e2d540 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a6042c70'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e2d900 'UISV-canvas-connection' UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7fd5a365b0f0.leading (active)>",
"<NSLayoutConstraint:0x600001e2db80 'UISV-canvas-connection' UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7fd5a60428b0.trailing (active)>",
"<NSLayoutConstraint:0x600001e2dbd0 'UISV-spacing' H:[_UIButtonBarButton:0x7fd5a365b0f0]-(0)-[UIView:0x7fd5a60410e0] (active)>",
"<NSLayoutConstraint:0x600001e2dc20 'UISV-spacing' H:[UIView:0x7fd5a60410e0]-(0)-[_UIButtonBarButton:0x7fd5a60412a0] (active)>",
"<NSLayoutConstraint:0x600001e2dc70 'UISV-spacing' H:[_UIButtonBarButton:0x7fd5a60412a0]-(0)-[UIView:0x7fd5a6042750] (active)>",
"<NSLayoutConstraint:0x600001e2dcc0 'UISV-spacing' H:[UIView:0x7fd5a6042750]-(0)-[_UIButtonBarButton:0x7fd5a60428b0] (active)>",
"<NSLayoutConstraint:0x600001e36a30 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>",
"<NSLayoutConstraint:0x600001e36ad0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600001e27070 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a365b4d0]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x7fd5a365b0f0 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x600001e2e580 h=--& v=--& _UIToolbarContentView:0x7fd5a37128e0.width == 0 (active)>",
"<NSLayoutConstraint:0x600001e36bc0 H:|-(0)-[_UIButtonBarStackView:0x7fd5a375cd30] (active, names: '|':_UIToolbarContentView:0x7fd5a37128e0 )>",
"<NSLayoutConstraint:0x600001e36c10 _UIButtonBarStackView:0x7fd5a375cd30.trailing == _UIToolbarContentView:0x7fd5a37128e0.trailing (active)>",
"<NSLayoutConstraint:0x600001e2c730 'IB_Leading_Leading' H:|-(>=5)-[_UIModernBarButton:0x7fd5a6041470] (active, names: '|':_UIButtonBarButton:0x7fd5a60412a0 )>",
"<NSLayoutConstraint:0x600001e2c780 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a6041470]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60412a0 )>",
"<NSLayoutConstraint:0x600001e2d4f0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x7fd5a6042c70'Done'] (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e2d540 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a6042c70'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e2d900 'UISV-canvas-connection' UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7fd5a365b0f0.leading (active)>",
"<NSLayoutConstraint:0x600001e2db80 'UISV-canvas-connection' UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7fd5a60428b0.trailing (active)>",
"<NSLayoutConstraint:0x600001e2dbd0 'UISV-spacing' H:[_UIButtonBarButton:0x7fd5a365b0f0]-(0)-[UIView:0x7fd5a60410e0] (active)>",
"<NSLayoutConstraint:0x600001e2dc20 'UISV-spacing' H:[UIView:0x7fd5a60410e0]-(0)-[_UIButtonBarButton:0x7fd5a60412a0] (active)>",
"<NSLayoutConstraint:0x600001e2dc70 'UISV-spacing' H:[_UIButtonBarButton:0x7fd5a60412a0]-(0)-[UIView:0x7fd5a6042750] (active)>",
"<NSLayoutConstraint:0x600001e2dcc0 'UISV-spacing' H:[UIView:0x7fd5a6042750]-(0)-[_UIButtonBarButton:0x7fd5a60428b0] (active)>",
"<NSLayoutConstraint:0x600001e36a30 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>",
"<NSLayoutConstraint:0x600001e36ad0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600001e2c780 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a6041470]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60412a0 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x600001e2e580 h=--& v=--& _UIToolbarContentView:0x7fd5a37128e0.width == 0 (active)>",
"<NSLayoutConstraint:0x600001e36bc0 H:|-(0)-[_UIButtonBarStackView:0x7fd5a375cd30] (active, names: '|':_UIToolbarContentView:0x7fd5a37128e0 )>",
"<NSLayoutConstraint:0x600001e36c10 _UIButtonBarStackView:0x7fd5a375cd30.trailing == _UIToolbarContentView:0x7fd5a37128e0.trailing (active)>",
"<NSLayoutConstraint:0x600001e2d4f0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x7fd5a6042c70'Done'] (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e2d540 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a6042c70'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e2d900 'UISV-canvas-connection' UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7fd5a365b0f0.leading (active)>",
"<NSLayoutConstraint:0x600001e2db80 'UISV-canvas-connection' UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7fd5a60428b0.trailing (active)>",
"<NSLayoutConstraint:0x600001e2dbd0 'UISV-spacing' H:[_UIButtonBarButton:0x7fd5a365b0f0]-(0)-[UIView:0x7fd5a60410e0] (active)>",
"<NSLayoutConstraint:0x600001e2dc20 'UISV-spacing' H:[UIView:0x7fd5a60410e0]-(0)-[_UIButtonBarButton:0x7fd5a60412a0] (active)>",
"<NSLayoutConstraint:0x600001e2dc70 'UISV-spacing' H:[_UIButtonBarButton:0x7fd5a60412a0]-(0)-[UIView:0x7fd5a6042750] (active)>",
"<NSLayoutConstraint:0x600001e2dcc0 'UISV-spacing' H:[UIView:0x7fd5a6042750]-(0)-[_UIButtonBarButton:0x7fd5a60428b0] (active)>",
"<NSLayoutConstraint:0x600001e36a30 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>",
"<NSLayoutConstraint:0x600001e36ad0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600001e2d540 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x7fd5a6042c70'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x600001e2e620 h=--& v=--& _UIToolbarContentView:0x7fd5a37128e0.height == 0 (active)>",
"<NSLayoutConstraint:0x600001e36c60 V:|-(0)-[_UIButtonBarStackView:0x7fd5a375cd30] (active, names: '|':_UIToolbarContentView:0x7fd5a37128e0 )>",
"<NSLayoutConstraint:0x600001e36cb0 _UIButtonBarStackView:0x7fd5a375cd30.bottom == _UIToolbarContentView:0x7fd5a37128e0.bottom (active)>",
"<NSLayoutConstraint:0x600001e2f750 UIImageView:0x7fd5a6040f20.centerY == _UIModernBarButton:0x7fd5a365b4d0.centerY (active)>",
"<NSLayoutConstraint:0x600001e272f0 'IB_Baseline_Baseline' _UIModernBarButton:0x7fd5a365b4d0.lastBaseline == UILayoutGuide:0x6000004f8700'UIViewLayoutMarginsGuide'.bottom (active)>",
"<NSLayoutConstraint:0x600001e27340 'IB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x7fd5a365b4d0] (active, names: '|':_UIButtonBarButton:0x7fd5a365b0f0 )>",
"<NSLayoutConstraint:0x600001e2c550 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x7fd5a365b0f0.height == UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.height (active)>",
"<NSLayoutConstraint:0x600001e36a80 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide']-(0)-| (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>",
"<NSLayoutConstraint:0x600001e27250 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x6000004f8700'UIViewLayoutMarginsGuide']-(16)-| (active, names: '|':_UIButtonBarButton:0x7fd5a365b0f0 )>",
"<NSLayoutConstraint:0x600001e369e0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'] (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600001e2f750 UIImageView:0x7fd5a6040f20.centerY == _UIModernBarButton:0x7fd5a365b4d0.centerY (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x600001e2e620 h=--& v=--& _UIToolbarContentView:0x7fd5a37128e0.height == 0 (active)>",
"<NSLayoutConstraint:0x600001e36c60 V:|-(0)-[_UIButtonBarStackView:0x7fd5a375cd30] (active, names: '|':_UIToolbarContentView:0x7fd5a37128e0 )>",
"<NSLayoutConstraint:0x600001e36cb0 _UIButtonBarStackView:0x7fd5a375cd30.bottom == _UIToolbarContentView:0x7fd5a37128e0.bottom (active)>",
"<NSLayoutConstraint:0x600001e2fed0 UIImageView:0x7fd5a6042460.centerY == _UIModernBarButton:0x7fd5a6041470.centerY (active)>",
"<NSLayoutConstraint:0x600001e2ca00 'IB_Baseline_Baseline' _UIModernBarButton:0x7fd5a6041470.lastBaseline == UILayoutGuide:0x600000479ea0'UIViewLayoutMarginsGuide'.bottom (active)>",
"<NSLayoutConstraint:0x600001e2ca50 'IB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x7fd5a6041470] (active, names: '|':_UIButtonBarButton:0x7fd5a60412a0 )>",
"<NSLayoutConstraint:0x600001e2cff0 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x7fd5a60412a0.height == UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.height (active)>",
"<NSLayoutConstraint:0x600001e36a80 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide']-(0)-| (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>",
"<NSLayoutConstraint:0x600001e2c960 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600000479ea0'UIViewLayoutMarginsGuide']-(16)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60412a0 )>",
"<NSLayoutConstraint:0x600001e369e0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'] (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600001e2fed0 UIImageView:0x7fd5a6042460.centerY == _UIModernBarButton:0x7fd5a6041470.centerY (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x600001e2e620 h=--& v=--& _UIToolbarContentView:0x7fd5a37128e0.height == 0 (active)>",
"<NSLayoutConstraint:0x600001e36c60 V:|-(0)-[_UIButtonBarStackView:0x7fd5a375cd30] (active, names: '|':_UIToolbarContentView:0x7fd5a37128e0 )>",
"<NSLayoutConstraint:0x600001e36cb0 _UIButtonBarStackView:0x7fd5a375cd30.bottom == _UIToolbarContentView:0x7fd5a37128e0.bottom (active)>",
"<NSLayoutConstraint:0x600001e21130 UIButtonLabel:0x7fd5a60448e0'Done'.centerY == _UIModernBarButton:0x7fd5a6042c70'Done'.centerY + 0.5 (active)>",
"<NSLayoutConstraint:0x600001e2d6d0 'TB_Baseline_Baseline' _UIModernBarButton:0x7fd5a6042c70'Done'.lastBaseline == UILayoutGuide:0x60000047a140'UIViewLayoutMarginsGuide'.bottom (active)>",
"<NSLayoutConstraint:0x600001e2d720 'TB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x7fd5a6042c70'Done'] (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e2d860 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x7fd5a60428b0.height == UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'.height (active)>",
"<NSLayoutConstraint:0x600001e36a80 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide']-(0)-| (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>",
"<NSLayoutConstraint:0x600001e2d630 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x60000047a140'UIViewLayoutMarginsGuide']-(16)-| (active, names: '|':_UIButtonBarButton:0x7fd5a60428b0 )>",
"<NSLayoutConstraint:0x600001e369e0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x600000472220'UIViewLayoutMarginsGuide'] (active, names: '|':_UIButtonBarStackView:0x7fd5a375cd30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600001e21130 UIButtonLabel:0x7fd5a60448e0'Done'.centerY == _UIModernBarButton:0x7fd5a6042c70'Done'.centerY + 0.5 (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.