Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
It is easy to draw shadows using Core Graphics. The graphics context is the element that bears the shadow. What that means is that you need to apply the shadow to the context, draw the shapes that need the shadow, and then remove the shadow from the context (or set a new context). We will see an example of this soon.
In Core Graphics, we can use two procedures to apply a shadow to a graphics context: