本文介绍了如何陷阱UIViewAlertForUnsatisfiableConstraints?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在调试器日志中看到错误:
I'm seeing an error appear in my debugger log:
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x191f0920 H:[MPKnockoutButton:0x17a876b0]-(34)-[MPDetailSlider:0x17a8bc50](LTR)>
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.
如何陷阱该电话?它不会出现在我的代码中的任何位置。
How do I trap on that call? It does not appear anywhere in my code.
推荐答案
您将需要添加符号断点
。 Apple提供了有关如何执行此操作的。
You'll want to add a Symbolic Breakpoint
. Apple provides an excellent guide on how to do this.
- 打开Breakpoint Navigator
cmd + 7
- 点击左下角的
添加
按钮 - 选择
添加符号断点...
- 只要输入
UIViewAlertForUnsatisfiableConstraints
- Open the Breakpoint Navigator
cmd+7
- Click the
Add
button in the lower left - Select
Add Symbolic Breakpoint...
- Where it says
Symbol
just type inUIViewAlertForUnsatisfiableConstraints
您也可以像任何其他断点一样处理它,打开和关闭它,添加操作或记录消息。
You can also treat it like any other breakpoint, turning it on and off, adding actions, or log messages.
这篇关于如何陷阱UIViewAlertForUnsatisfiableConstraints?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!