Considering Table Input
If you look at the documentation for WKInterfaceTable, you may notice that there is no delegate property, nor (seemingly) any way to handle when the user taps our table. Is this some massive oversight of WatchKit’s? Do we need to search for a cryptic informal protocol in Objective-C? Turns out the answer is neither of those things. When the user interacts with a WKInterfaceTable, those interactions are automatically forwarded to the table’s containing interface controller, much like the responder chain on iOS. Specifically, we want to look at WKInterfaceController’s table(_:didSelectRowAtIndex:) method.
In our table, we’ll probably want to show the details for a run when the user taps a row. We’ll cover displaying another ...
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