The UIViewController Class
UIViewController is the parent class for view controllers and the one you use to manage your primary views. It is the workhorse of view controllers. You may spend a large part of your time customizing subclasses of this one class. The basic UIViewController class manages each primary view’s lifetime from start to finish and takes into account the changes that the view must react to along the way.
UIViewController instances are responsible for configuring how a view looks and what subviews it displays. Often they rely on loading that information from XIB or storyboard files. Instance methods let you manually create the view layout in code (loadView) or add behavior after a view finishes loading (viewDidLoad).
Reacting ...
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