By Developers, For Developers

Historical errata for Developing for Apple Watch

PDF PgPaper PgTypeDescriptionFixed onComments
62TYPO

The code sample creates an array with a single string “RunTimerInterfaceController”, but it should be the identifier of the target interface controller, not the class name.

I think the code should read:

let names = [“RunTimer”]

2015-07-07
67TYPO

I think the text "Be sure to connect the two IBAction methods to their respective interface objects." starting off the paragraph right after the code snippet means to talk about IBOutlets and variables?

2015-07-07
66TYPO

The line in the code snippet should pass the run, not a dictionary with the run.

context = [“Run”: runs![rowIndex]]

should read

context = runs![rowIndex]

2015-07-07
73ERROR

There should not be a call to saveRunToUserDefaults() at this point. That comes later on page 83

2015-07-07
67SUGGEST

#78460 mentions IBAction should possibly be IBOutlet. Additionally I think the paragraph would be more helpful if changing the class and row identifier were stated first and then followed by connecting the @IBOutlet variables to the UI labels as there is not a straight-forward way to connect those until the row controller’s class is changed.

“Be sure to connect the two @IBAction methods to their respective interface objects. While we’re in the storyboard, let’s change the class of the row controller to our new LapDetailRowController class, and then its identifier to LapRow. Our UI is all finished now. It should look like the image here.”

Excerpt From: Jeff Kelley. “Developing for Apple Watch (for Sam Marten).” iBooks.

2015-07-07

Categories: