简体   繁体   English

Debug View Hierarchy中的神秘对象

[英]Mysterious objects in Debug View Hierarchy

I'm having trouble understanding what I'm seeing in the Debug View Hierarchy. 我无法理解我在Debug View Hierarchy中看到的内容。 Here's a screenshot: 这是一个截图:

在此输入图像描述

The question is what are all the seemingly extraneous views (highlighted in blue)? 问题是所有看似无关紧要的观点(以蓝色突出显示)是什么? I'm particularly interested in the one in front of the red view. 我对红色视图前面的那个特别感兴趣。

The point here is that while these things show up in the Debug View Hierarchy, they're not visible in the Storyboard Editor, nor are they identified in the Document Online. 这里的要点是,虽然这些内容显示在Debug View Hierarchy中,但它们在Storyboard Editor中不可见,也未在Document Online中标识。 They're sort of cryptically identified in the Debug Navigator (the one in question is identified as a generic UIView). 它们在Debug Navigator中被隐式识别(有问题的一个被识别为通用的UIView)。 I'm not aware of adding these things in Storyboard, and they're muddying the water in my debugging efforts. 我不知道在故事板中添加这些东西,并且他们在我的调试工作中弄脏了水。

All help or observations appreciated! 所有帮助或观察赞赏!

Some UIKit components are quite complex view hierarchies behind the scenes. 一些UIKit组件是幕后非常复杂的视图层次结构。 It's the internal Apple implementation. 这是Apple的内部实现。 You might see simple UIViews or more esoteric stuff like UITableViewWrapperView. 您可能会看到简单的UIViews或更多深奥的东西,如UITableViewWrapperView。 Unfortunately there is no easy way to turn visibility of these off. 不幸的是,没有简单的方法来关闭这些的可见性。

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

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