如何在Xcode中找到特定函数的所有调用函数,如eclipse的Call Hierarchy?

时间:2021-12-27 22:04:31

how do I find in XCode all caller functions of a specific function like eclipse's Call Hierarchy

如何在XCode中找到特定函数的所有调用函数,如eclipse的Call Hierarchy

1 个解决方案

#1


13  

Since the release of XCode 4.4, this functionality exists and is called "show related items". There are multiple ways of accessing the pop-up menu that will allow you to view all callers and callees, among other things.

自XCode 4.4发布以来,此功能存在并被称为“显示相关项”。有多种方法可以访问弹出菜单,以便查看所有呼叫者和被叫者等。

The fastest way is:

最快的方法是:

  1. Mark method in code (using your cursor or double click name)
  2. 代码中的标记方法(使用光标或双击名称)

  3. Press Ctrl+1
  4. Select "Callers" from the pop-up menu
  5. 从弹出菜单中选择“呼叫者”

You can also go View->Standard Editor->show related items or press the tiny button just left of the arrow buttons in the line just above the editor window (where it shows your currently selected file and method).

您也可以进入View-> Standard Editor->显示相关项目,或按下编辑器窗口正上方的箭头按钮左侧的小按钮(显示当前所选文件和方法)。

#1


13  

Since the release of XCode 4.4, this functionality exists and is called "show related items". There are multiple ways of accessing the pop-up menu that will allow you to view all callers and callees, among other things.

自XCode 4.4发布以来,此功能存在并被称为“显示相关项”。有多种方法可以访问弹出菜单,以便查看所有呼叫者和被叫者等。

The fastest way is:

最快的方法是:

  1. Mark method in code (using your cursor or double click name)
  2. 代码中的标记方法(使用光标或双击名称)

  3. Press Ctrl+1
  4. Select "Callers" from the pop-up menu
  5. 从弹出菜单中选择“呼叫者”

You can also go View->Standard Editor->show related items or press the tiny button just left of the arrow buttons in the line just above the editor window (where it shows your currently selected file and method).

您也可以进入View-> Standard Editor->显示相关项目,或按下编辑器窗口正上方的箭头按钮左侧的小按钮(显示当前所选文件和方法)。