【问题标题】:What do the values in _subtreeDescription output mean?_subtreeDescription 输出中的值是什么意思?
【发布时间】:2014-06-16 08:02:59
【问题描述】:

在自定义滚动视图显示上调用_subtreeDescription

Seohtracker devel[22556:303] [AF O WLU] h=-&- v=-&- EHGraph_scroll 0x100c52f20 f=(367,169,250,168) b=(-) => _NSViewBackingLayer(0x101a77500) a={0, 0} p={367, 169} b=(0,0,250,168) superlayer=0x101a756f0 TILED=no TIME drawRect: min/mean/max 0.00/0.00/0.00 ms

pb 似乎源自框架f。参数a是什么意思?

【问题讨论】:

    标签: macos layout xib


    【解决方案1】:

    这是一个层,事物的名称与视图略有不同。看看 CALayer,这些含义很快就会变得清晰。

    p = position
    b = bounds
    a = anchorPoint
    

    此外,如果您直接在 LLVM 中打印出支持层,您将获得对该层当前属性的更详细的描述:

    (lldb) po 0x6080000c5550
    <SCNBackingLayer:0x6080000c5550; position = CGPoint (0 0); bounds = CGRect (0 0; 480 360); delegate = <SCNView: 0x100e03070 | scene=(null) sceneTime=0.000000 frame={{0, 0}, {480, 360}} pointOfView=(null)>; sublayers = (<AVCaptureVideoPreviewLayer: 0x608000026420>, <SCNBackingLayer: 0x6100000c2450>); opaque = YES; masksToBounds = YES; backgroundFilters = (
    ); filters = (
    ); shadowColor = (null); anchorPoint = CGPoint (0 0); NS_view = <SCNView: 0x100e03070 | scene=(null) sceneTime=0.000000 frame={{0, 0}, {480, 360}} pointOfView=(null)>>
    

    为了后代,我还应该指出,其他字母(AFOW 等)定义在 _subtreeDescription 输出的底部。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-05
      • 2014-10-05
      • 2019-10-05
      • 2011-04-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多