如何在UIViewAlertForUnsatisfiableConstraints陷阱? [英] How to trap on UIViewAlertForUnsatisfiableConstraints?
本文介绍了如何在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.
我如何陷阱上打电话?它不会在我的code的任何地方出现。
How do I trap on that call? It does not appear anywhere in my code.
推荐答案
您需要添加一个符号断点
。苹果提供了一个<一个href=\"https://developer.apple.com/library/ios/recipes/x$c$c_help-breakpoint_navigator/articles/adding_a_symbolic_breakpoint.html\">excellent指南如何做到这一点。
You'll want to add a Symbolic Breakpoint
. Apple provides an excellent guide on how to do this.
- 打开断点导航
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陷阱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文