Linking Interfaces in Your Storyboard
There are several ways to go from one interface controller to another. We’ll see them as the chapter goes on, but one thing to note right away is that whether you’re performing the transition in code or linking it up in Interface Builder, every interface controller must have its user interface laid out in your storyboard file. Unlike your iPhone app, where you can create view objects from code, from a storyboard, or from an xib, every single UI element needs to exist in your storyboard before it’s referenced.
Another departure from UIKit on iPhone is that WatchKit includes a built-in way to pass context from one interface controller to another. The context you pass can be model objects, raw data, or nothing ...
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