Comparing WatchKit Tables and iOS Table Views

If table views on iOS have one thing going for them, it’s that they’re routine fodder for introductory materials. Table views are where most developers new to working with Apple platforms encounter the delegation design pattern. Delegation is a routine stumbling block, most often encountered in UITableView. WKInterfaceTable, by contrast, has no datasource to set and no delegate to implement, and—most importantly—it eschews UIKit’s “don’t call us; we’ll call you” paradigm in favor of requiring you to tell it in advance all of the data it’ll need to display. If you’ve never used UITableView and have no idea what I’m talking about, don’t worry. You don’t need to have used ...

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.