如何像 XCode 3 一样查看 XCode 4 中的对象层次结构?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5957392/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:00:54  来源:igfitidea点击:

How can I view the object hierarchy in XCode 4 like XCode 3 does?

iphonexcodehierarchyxib

提问by Jose

In Information Builder, I need to view/navigate all the objects in a the XIB and like to use the object hierarchy view in Xcode 3. However, in XCode 4, it just show the top level objects, but not the child objects. How can I view them all in XCode 4?

在信息生成器中,我需要查看/导航 XIB 中的所有对象,并且喜欢使用 Xcode 3 中的对象层次结构视图。但是,在 XCode 4 中,它只显示顶级对象,而不显示子对象。如何在 XCode 4 中查看它们?

采纳答案by MStudios

You can also simply drag the object view window from the right side of the window. It will then show all the objects and their hierarchy.

您也可以简单地从窗口右侧拖动对象视图窗口。然后它将显示所有对象及其层次结构。

回答by Mark

Thanks for the other answers, that helped me. For future answer seekers, it looked a bit different for me in xcode 4.2. Pressing the grey"play" button in the bottom left corner poped out the hierarchy.

感谢其他答案,这对我有帮助。对于未来的答案寻求者,我在 xcode 4.2 中看起来有点不同。按左下角的灰色“播放”按钮会弹出层次结构。

xcode screenshot

Xcode截图

回答by Antwan van Houdt

Click on the arrow in the lower left of the gutter that shows the objectsenter image description here

单击显示对象的装订线左下方的箭头在此处输入图片说明