在UIView
动画期间,在子视图上调用layoutSubviews
。在对layoutSubviews
的调用中,我对该视图中的某些现有图层进行了更改(更新高度和间距)。
aSublayer.frame = CGRect(x: (Double(i) * benchWidth), y: 0.0, width: benchWidth, height: currentHeight)
在这些更新期间(对于每个更新的图层),Xcode会输出如下所示的消息。
pending: lineWidth from 1 to Optional(2)
pending: path from <CGPath 0x6000002260c0> to Optional(<CGPath 0x6080002273c0>)
pending: position from NSPoint: {126.45161290322581, 12.5} to Optional(NSPoint: {443.87096774193549, 63})
pending: bounds from NSRect: {{0, 0}, {245, 25}} to Optional(NSRect: {{0, 0}, {860, 126}})
pending: position from NSPoint: {3.9516129032258065, 19.61345452990809} to Optional(NSPoint: {13.870967741935484, 98.851810830736767})
pending: bounds from NSRect: {{0, 0}, {7.903225806451613, 10.773090940183822}} to Optional(NSRect: {{0, 0}, {27.741935483870968, 54.296378338526466}})
pending: position from NSPoint: {3.9516129032258065, 15.226909059816178} to Optional(NSPoint: {13.870967741935484, 72.703621661473534})
pending: bounds from NSRect: {{0, 0}, {7.903225806451613, 2}} to Optional(NSRect: {{0, 0}, {27.741935483870968, 2}})
我无法使用这些消息找到任何文档/ StackOverflow答案。我的猜测是我正在对图层的边界/框架/等进行更新......它还有未决的更改吗?我无法验证这一点。据我所知,CALayer
没有任何标志,好像有待更改。
有没有人看过这些消息,我该如何阻止/阻止它们,这是否应该引起关注?动画效果非常好。