Chapter 3
Two things.
First, p. 134 is missing a step that becomes apparent when nothing appears in the table while running the program. Figure 3-10 highlights the omission. The first child of Root needs to be contacts of type Dictionary, and the subsequent dictionaries are children of contacts. Without this the -viewDidLoad method in RootViewController ends up setting the NSDictionary to null since there is no key "contacts" in the dictionary loaded from the .plist.
Second, and this is because I love to take advantage of autocompletion, it is a good idea to do the CustomTableView .h and .m coding before completing RootViewController.m since coding the configuring of the cells then autocompletes the accessors when setting the cell text.
Bob
|