© Molly K. Maskrey 2017

Molly K. Maskrey, Beginning iPhone Development with Swift 4, https://doi.org/10.1007/978-1-4842-3072-5_5

5. Working with Device Rotations

Molly K. Maskrey

(1)Parker, Colorado, USA

The iPhone and iPad exude amazing engineering in form, fit, and function. Apple engineers found all kinds of ways to squeeze maximum functionality into a very small and elegant package. One example of this exists in the ability of these devices to be used in either portrait (tall and skinny) or landscape (short and wide) mode and how that orientation can be changed at runtime simply by rotating the device. You see an example of this autorotation behavior in the iOS Safari browser, as shown in Figure 5-1. In this chapter, I’ll cover rotation in detail, ...

Get Beginning iPhone Development with Swift 4: 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.