如何在 Xcode 4 中浏览方法调用层次结构? [英] How do I navigate through a method call hierarchy in Xcode 4?
问题描述
我来自 Eclipse,我想知道 Xcode 4 中是否有一种方法可以像那里那样导航方法调用.我知道我可以跳转到方法的定义,但我想知道谁在调用该方法/函数.我发现的唯一方法是进行常规文本搜索,但这不是很有帮助.
I come from Eclipse, I would like to know if there is a way in Xcode 4 to navigate through method calls like there. I know I can jump to the definition of a method, but I want to know who is calling that method/function. The only way I've found is doing a regular text search, but that's not very helpful.
推荐答案
从 Xcode 4.4 开始,查找方法的直接调用者和/或被调用者的功能已经可用.不幸的是,似乎没有像 Eclipse 那样方便的层次结构视图.
Since Xcode 4.4 the feature to look up the immediate caller and/or callees of a method has been available. Unfortunately, there doesn't seem to be a handy hierarchy view as there is in Eclipse.
Xcode 可以显示当前函数或方法的调用者和被调用者.此功能可从 Show Related Items 菜单访问,或通过使用 Assistant 编辑器并在跳转栏弹出菜单中选择 Callers 或 Callees.
Xcode can show the callers and callees of the current function or method. This function is accessed from the Show Related Items menu, or by using the Assistant editor and selecting Callers or Callees in the jump bar pop-up menu.
这篇关于如何在 Xcode 4 中浏览方法调用层次结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!