7. Touches, Shakes, and Orientation

The iPhone’s primary interface is its large Multi-Touch display. Since it doesn’t have a physical keyboard, everything is accomplished via this screen. The iPhone takes things much further than a simple keyboard, however, allowing you to interact with your applications in a very natural and intuitive way. Objects onscreen can be moved, zoomed in or out, and scrolled using simple gestures.

The iPhone can also respond to changes in orientation; it can automatically switch and resize the display to portrait or landscape when you rotate the phone, and it can react to shakes and tilting.

In this chapter you’ll see how easy it is ...

Get iPhone Application Development for iOS 4: Visual QuickStart Guide 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.