当我打开带有文本字段的工作表,并将焦点放在文本字段上时,会出现键盘并显示此消息:
2021-02-06 22:29:35.817858+0100 OrientationEPS[4026:269878] [LayoutConstraints] 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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x6000030b3250 h=--& v=--& _UIButtonBarButton:0x7fea6492cf40.height == 0 (active)>",
"<NSLayoutConstraint:0x6000030fce60 _UIUCBKBSelectionBackground:0x7fea64930c50.bottom == _UIButtonBarButton:0x7fea6492cf40.bottom - 6 (active)>",
"<NSLayoutConstraint:0x6000030ec7d0 V:|-(6)-[_UIUCBKBSelectionBackground:0x7fea64930c50] (active, names: '|':_UIButtonBarButton:0x7fea6492cf40 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000030fce60 _UIUCBKBSelectionBackground:0x7fea64930c50.bottom == _UIButtonBarButton:0x7fea6492cf40.bottom - 6 (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
我不太明白绿色部分说的是什么......(NSAutoresizingMaskLayoutConstraint - NSLayoutConstraint)
你能解释一下这个消息吗?
我可以添加我的代码,但我不知道我必须发布哪一部分......
此错误消息出现在我的所有工作表上,并以文本字段为焦点。 (我的应用程序中有 3 个)
A ScreenShot of my app.
我在更新到 12.4 后才开始注意到这一点(尽管我之前可能已经错过了)。经过大量调查,我发现每次 UITextField 变为活动状态时我都会收到相同的消息。
为了确认这一点,只需制作一个只有一个 UITextField 的简单应用程序,无论约束如何设置或不设置,都会出现相同的警告。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)