Search
Rich's Mad Rants
Powered by Squarespace

Creating iOS 5 Apps Discussion > Page 431 - Errata - removing WeightEntry.h import declaration

Throughout this chapter the book instructs to remove the import declarations for WeightEntry.h, and then subsequently has us put them back. The purpose may have just been to reinforce to the reader to remember to import header files. However, on page 431 it states to delete the import of WeightEntry.h yet does not subsequently instruct to reenter it. Doing so will result in several errors in this file.

January 4, 2012 | Unregistered CommenterScott

When I was working on it, I did things in two different steps. First, I removed all references to the old WeightEntry class, then I added the new WeightEntry class. Honestly, I didn't realize that I was having you remove and then reinsert the same #import line.

Of course, we do need to add #import "WeightEntry.h" back into the DetailViewController.m file for things to compile correctly.

January 4, 2012 | Registered CommenterRichard Warren