Chapter 2
Interface Controllers and Layout
Chapter 1 introduced the basic building blocks of WatchKit and helped you create a very simple application. This chapter looks in detail at interface controllers, the WatchKit equivalent of UIKit’s view controllers. We start by discussing the lifecycle of an interface controller and how it relates to the lifecycle of your WatchKit application’s extension. We then cover in some detail the way in which interface controllers handle layout and the storyboard tools you can use to construct layouts that adapt to the different screens of the 38mm and 42mm Apple Watch devices.
Interface Controllers
As you saw in Chapter 1, interface controllers contain the logic for your WatchKit application. Every interface ...
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