Chapter 3. Handling Basic Interaction
Our Hello World application was a good introduction to iPhone development using Cocoa Touch, but it was missing a crucial capability: the ability to interact with the user. Without that, our application is severely limited in terms of what it can accomplish.
In this chapter, we're going to write a slightly more complex application, one with two buttons as well as a label (see Figure 3-1). When the user taps either of the buttons, the label's text changes. This may seem like a rather simplistic example, but it demonstrates the key concepts you'll need to master the use of controls in your iPhone applications.
Figure 3.1. The simple two-button application we will be building in this chapter
The Model-View-Controller ...
Get Beginning iPhone 3 Development: Exploring the iPhone SDK 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.