Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

6. Subclassing UIView and UIScrollView > Gold Challenge: Another View and Curve...

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.)


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint