简体   繁体   English

Xcode View Debugger:如何在层次结构中显示 3-D 检查器中的选择?

[英]Xcode View Debugger: How can I reveal in the hierarchy the selection in the 3-D inspector?

In the Xcode 9 view debugger, I'd like to select a view in the 3-D exploded diagram of views, and then reveal that view in the hierarchy on the left.在 Xcode 9 视图调试器中,我想在视图的 3-D 分解图中选择一个视图,然后在左侧的层次结构中显示该视图。 I know I can "focus" on that view by double-clicking it or selecting "Focus on UIView" from the contextual menu.我知道我可以通过双击该视图或从上下文菜单中选择“关注 UIView”来“关注”该视图。 I know I can also filter by some part of the type of view I want to find, but I actually just want to view I have selected in the context of the complete hierarchy in a single step.我知道我也可以按我想要查找的视图类型的某些部分进行过滤,但实际上我只想在一个步骤中查看我在完整层次结构的上下文中选择的视图。 I haven't found a way of doing this-- am I missing something?我还没有找到这样做的方法 - 我错过了什么吗?

You can use the Xcode menu item "Navigate / Reveal in Debug Navigator" to reveal the selected item in the outline view. 您可以使用Xcode菜单项“在Debug Navigator中导航/显示”来显示大纲视图中的所选项目。

Or the convenient keyboard shortcut ⌘ + Shift + D. 或方便的键盘快捷键⌘+ Shift + D.

如果您还将捕获视图层次结构设置为:command + shift + V,则组合使用效果很好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM