I'm creating an iPad-App with an UIView that has two UITextFields
in it.
Whenever I run my App and I click in one of the UITextFields
and then on the other one (order doesn't matter) it always throws an error, that it has to break a constraint.
I even put two completely new UITextFields
on the UIView without any constraints at all and it still shows me that error.
[LayoutConstraints] Unable to simultaneously satisfy constraints.
(
"<NSLayoutConstraint:0x600003db4c80 'assistantHeight' TUISystemInputAssistantView:0x7fdc1f423400.height == 55 (active)>",
"<NSLayoutConstraint:0x600003dae940 'assistantView.bottom' TUISystemInputAssistantView:0x7fdc1f423400.bottom == _UIKBCompatInputView:0x7fdc1f21bb20.top (active)>",
"<NSLayoutConstraint:0x600003dae8f0 'assistantView.top' V:|-(0)-[TUISystemInputAssistantView:0x7fdc1f423400] (active, names: '|':UIInputSetHostView:0x7fdc1f432480 )>",
"<NSLayoutConstraint:0x600003da4d70 'inputView.top' V:|-(0)-[_UIKBCompatInputView:0x7fdc1f21bb20] (active, names: '|':UIInputSetHostView:0x7fdc1f432480 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600003dae940 'assistantView.bottom' TUISystemInputAssistantView:0x7fdc1f423400.bottom == _UIKBCompatInputView:0x7fdc1f21bb20.top (active)>
I even tried the symbolic-breakpoint-thing where you get a more detailed report, but I can't find any clues what is wrong here:
UIWindow:0x7fa39f3092a0
| UITransitionView:0x7fa39f20f360
| | UIDropShadowView:0x7fa39f20fa40
| | | UIView:0x7fa39f20f880
| | | | •UIView:0x7fa39f20b690
| | | | | *<UILayoutGuide: 0x6000010e47e0 - "UIViewSafeAreaLayoutGuide", layoutFrame = {{0, 24}, {834, 1088}}, owningView = <UIView: 0x7fa39f20b690; frame = (0 0; 834 1112); autoresize = W+H; layer = <CALayer: 0x600002914fa0>>>
| | | | | *UILabel:0x7fa39f20c590'Patient:'
| | | | | *UITextField:0x7fa3a1025c00
| | | | | | _UITextFieldRoundedRectBackgroundViewNeue:0x7fa39f20ba90
| | | | | | *_UIBaselineLayoutStrut:0x7fa3a190a320
| | | | | | _UITextFieldCanvasView:0x7fa39f20b340
| | | | | *UITextField:0x7fa39f83be00
| | | | | | _UITextFieldRoundedRectBackgroundViewNeue:0x7fa39f20b140
| | | | | | *_UIBaselineLayoutStrut:0x7fa3a1909cb0
| | | | | | UIFieldEditor:0x7fa3a2815000
| | | | | | | _UITextFieldCanvasView:0x7fa39f20c1f0
| | | | | | | | UITextSelectionView:0x7fa39e40a100
| | | | | *UIButton:0x7fa39f708b60'Start'
| | | | | | UIButtonLabel:0x7fa3a19063d0'Start'
| | | | | *UILabel:0x7fa39f20d200'Sitzung:'
| | | | | *UILabel:0x7fa39f709de0'Felder dürfen nicht leer ...'
| | | | | *UIButton:0x7fa39f20d480'Daten'
| | | | | | UIButtonLabel:0x7fa3a1909300'Daten'
Is there anything that I'm missing, or a way to fix that error?
I have the same problem with other TextFields in my project and I tried everything from putting the TextFields into a new View or adding/removing constraints.