Chapter 5
Autorotation and Autosizing
The iPhone, iPad, and other iOS devices are all amazing pieces of engineering. Apple engineers found all kinds of ways to squeeze maximum functionality into a pretty darn small package. One example is the mechanism that allows applications to be used in either portrait (tall and skinny) or landscape (short and wide) mode, and to change that orientation at runtime if the phone is rotated. A prime example of this behavior, which is called autorotation, can be seen in iOS's web browser, Mobile Safari (see Figure 5–1).
Figure 5–1. Like many iOS applications, Mobile Safari changes its display based on how ...
Get Beginning iPhone 4 Development: Exploring the iOS 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.