Which, if either, of these methods would be an appropriate place to:
- Change the text of a CATextLayer
- Load a different image into a CAImageLayer
- Tell sublayers to update themselves
Which, if either, of these methods would be an appropriate place to:
Dude I may be way drunk ... but there is NO drawRect method in
CAlayers
I think you can use
drawInContext:
to actually (gulp) draw in to CALayers, but nobody is man enough to do that since WW2.Regarding display, you don't need to call it, it basically updates what you set using
.contents
.I just use
.contents
something like this ...Say one had the guts to write one's own
drawInContext:
...In that case, it gets called (or abstracted out ... or recalculated, or something) when you call
displayAsNeeded
. (I've never needed to calldisplayAsNeeded:
, that's for sure.)