June 2011
Intermediate to advanced
590 pages
19h 31m
English
While we are talking about drawing, let’s add some text with a shadow to the view, as shown in Figure 6.3.
Figure 6.3 View that draws text

Open HypnosisView.m and add the following code to the end of your drawRect: method:
for (float currentRadius = maxRadius; currentRadius > 0; currentRadius -= 20) { CGContextAddArc(context, center.x, center.y, currentRadius, 0, M_PI * 2.0, YES); ...Read now
Unlock full access