Gold Challenge: Another View and Curves

Make another UIView subclass. This subclass should draw the Big Nerd Ranch logo. (For the logo, use the file that you used for the application icon of the Quiz application.)

The logo should be clipped to a circle that contains just the hat. The logo should have a black outline with a shadow underneath it. Also, the circle should have a slightly blue gradient coming from the top of the circle to the center of it. This view instance should be a subview of the HypnosisView. (Hint: you will need to use UIImage, CGColorSpaceRef, CGGradientRef, CGContextClip and a few other functions and types you have seen in previous challenges and this chapter.)

Figure 6.14  Finished gold challenge

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.