Linking Content to the UI with Row Controllers
Looking at the interface object hierarchy in the storyboardâs Run Log interface controller (if you donât see it, select Editor â Show Document Outline), you can see that your labels are nested inside a parent group, but that instead of the group being a child of the table (which would match how it appears in the interface editor), thereâs an intermediate object that looks different, called Table Row Controller. This is the row controller weâve been talking about, and itâs vital to understanding how tables work in WatchKit.
Row controllers are lightweight objects that sit between tables and row content. Their entire role is to ferry data from your interface controller to the interface ...
Get Developing for Apple Watch, 2nd Edition 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.