什么是选择的CALayer在查看效果督察界面生成器里面吗?(What does selecting

2019-09-16 16:45发布

里面IB,在查看效果检查,有设置核心动画层的选项。 如果我将它设置它有什么作用?

它是相当于setWantsLayer:YES

如果是这样那么按照苹果文档 setWantsLayer之前或之后调用setLayer:

The order that setWantsLayer: and setLayer: are called is important, it makes the distinction between a layer-backed view and a layer-hosting view.

如果我从IB设置的CALayer,那将是哪些订单?

Answer 1:

该复选框,使您的视图层支持的 (比如调用setWantsLayer:setLayer:



文章来源: What does selecting CALayer in View Effects Inspector inside Interface Builder do?