【发布时间】:2014-07-30 07:17:37
【问题描述】:
我设置了断点并想打印我的 UITextField 的超级视图。我输入 po myTextField.superview 但收到以下错误:
error: instance method 'undoManager' has incompatible result types in different translation units ('id' vs. 'NSUndoManager *')
note: instance method 'undoManager' also declared here
error: 1 errors parsing expression
这是什么意思?如何打印我的超级视图?我找到了一个在代码中提供了一个 janky 解决方法的链接:http://openradar.io/15890965,但我想要一个更好的解决方案。
【问题讨论】:
-
同样的故事:我在
UITableView的类别上尝试po tableView.gestureRecognizers。 -
我在尝试 po frame、bounds、recursiveDescription、constraints 等(仅限内置方法)时多次看到此错误。似乎是一个严重的 xcode/lldb 错误。
标签: ios xcode lldb nsundomanager