Update (February 2015): Downloadable project files confirmed working in Xcode 6.2 Beta 5!
There’s an issue with WatchKit in Xcode 6.2 beta 5, where if you set the number of rows on a table to the same number it already has, then configuring the rows gets a little flaky. The updated project files wrap the call to setNumberOfRows
as follows:
if posts.count != table.numberOfRows {
table.setNumberOfRows(posts.count, withRowType: "PostRowType")
}
Challenge
Your challenge is to set-up a context menu using code instead of the storyboard. See the Challenge PDF for full details.
Download lecture slides
Download demo starter
Download demo finished
Download challenge finished
Previous video: Part 8: Table Actions
Next video: Part 10: Page-Based Interfaces I