Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Handling user touches is fundamental to the iPhone. Without the ability to recognize one or more touches on the screen, you would not be able to interact with the iPhone, essentially making it an attractive paperweight.
Because of this, Apple has provided a framework that enables you to capture and process touch events. We see throughout this chapter how this framework and the events generated can be used to control a game.