Chapter 3. Introduction to UI Kit
UI Kit is the largest iPhone framework in terms of file size, and rightly so—it’s responsible for all user interface functions, from creating windows and text boxes to reading multi-touch gestures and hardware sensors. All of the graphical pleasantries that make the iPhone seem easy to use rely on the UI Kit framework to deliver a polished and unified interface. The same UI Kit APIs are available to all iPhone applications, and understanding how to use this framework will allow you to take advantage of some of the tools and effects that make Apple’s own stock apps spectacular.
UI Kit is more than a mere user interface kit; it is also the
runtime foundation for iPhone GUI applications. When you launch an
application, its main
function
instantiates a UIApplication
object within UI Kit. This class is the base class for all
applications having a user interface on the iPhone, and it provides the
application access to the iPhone’s higher-level functions. In addition to
this, common application-level services such as resigning control to other
applications and becoming active again are functions of the UIApplication
class.
All iPhone applications created in Xcode are linked to the UI Kit framework by default, so you won’t need to do anything special to connect it to your application. To create the skeleton for the UI Kit application examples used in this chapter, you’ll be instructed to use Xcode to create a new window-based application, view-based application ...
Get iPhone SDK Application Development 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.