Xcode - 用户界面检查器位置 X 和位置 Y 值?

Xcode -User Interface Inspector Position X and Position Y values?

使用 Xcode 用户界面检查器 Position xPosition y 值是什么?

如果你看我的照片,我正在检查的帧从 CGPoint 0,0 开始,它的边界是 0,0。

207和327.222分别对应什么?

我猜这是视图的后备 layer 位置。由于 CALayers 的位置指的是它们的中心,因此这些值实际上是您在检查器上获得的大小的一半 (414 / 2 = 207 & 654.67 / 2 ≃ 327)。我的猜测是基于Z Position也是一个属性层。

编辑: 在 Apple 的文档中进行了一些搜索后,此 属性 被描述为 "Position in the parent"(单击 "View debugger size inspector"),这相当令人困惑,因为这是(在谈论视图时)框架的起源。