Row Types and Storyboard Groups
Every WKInterfaceTable delivers content to the user in vertically stacked rows. To demonstrate this, letâs create a new interface controller in our running app. Once the user is finished with a run, sheâll want to be able to quickly scroll through a history of her runs, comparing distances and paces as she goes. To that end, letâs make an interface controller with a table in it that displays one row for each run, with the newest at the top.
First, open your watch appâs storyboard and drag in a new interface controller. Give it the title âRun Log.â Next, create a new WKInterfaceController subclass and name it RunLogInterfaceController, being sure to add it to your WatchKit extension and not your iPhone ...
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.