View Controllers
As their name suggests, view controllers provide the controller component of iOS’s Model–View–Controller design pattern. Each view controller manages a set of views that comprise a single user-interface component within an application. View controllers coordinate view loading and appearance as well as participate in responding to user interactions.
View controllers also harmonize with the device and underlying operating system. When a user rotates the device, for example, the view controller may update its views’ layout. When the OS encounters a low-memory scenario, controllers respond to memory warnings.
In short, view controllers provide central management. They negotiate with a range of orthogonal development requirements ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access