I am trying to deal with Core Graphics and Core Animation. I understand the following:
UIView
drawRect
CALayer
My questions: - If I create CALayerfrom scratch (without using something like CALayer *myLayer = myUIView.layer), what is the approach to drawing in this CALayer? What is the CALayer equivalent drawRectfor UIView?
CALayer *myLayer = myUIView.layer
I hope this makes sense.
To make your own drawing, you have two options:
-drawInContext:
-drawLayer:inContext:
UIView. CALayer CALayer .