CGContext vs CALayer
问题 I'm trying to get a handle on Quartz 2D and looking at the online book Quartz 2D Graphics for Mac OS X Developers. One very basic thing that is confusing me is the CGContext. For example, I can draw a simple "U" shape with the code below and use it in a CAShapeLayer without referencing a CGContext . Is the context implied/provided by default by the CAShapeLayer ? I'm probably mixing up several iOS/OSX graphics APIs here so maybe someone can clarify where I am going wrong. CGPoint pt1 =