Inside IB, in View Effects Inspector, there is an option to set Core Animation Layer. If I set it what does it do?
Is it equivalent to setWantsLayer:YES
?
If so then as per Apple docs setWantsLayer
can be called before or after 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.
If I set CALayer from IB, which order would it be?
The checkbox makes your view layer-backed (like calling setWantsLayer:
without setLayer:
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With