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. Core Graphics > Getting Started with Core Graphics

Getting Started with Core Graphics

Core Graphics should really be looked upon as a third essential framework, alongside UIKit and Foundation.

Core Graphics is a C-based API used for all drawing operations. When you use UIKit to create a button, image, or any other UIView subclass, UIKit uses Core Graphics to draw those elements to the screen. Additionally, UIEvent (the event handling class of UIKit) uses Core Graphics to help determine the location of touches on the screen.

UIKit handles these processes automatically and behind the scenes. This allows developers to rapidly produce common UI elements while working in the higher-level Objective-C framework of UIKit without getting their hands dirty with the lower level C-based API of Core Graphics. However, you’ll discover that sometimes it is very useful to dig down and take advantage of the power of the Core Graphics API directly.


  

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