Chapter 1 Navigation Bar
Finally got time to start the book.
Two things about the code:
1. On page 5 two instance variables for odd and even arrays are declared and never used, new local arrays are created in the -initData method that serve the same purpose. Since the instance variables are never used, why have them?
2. Is there a particular reason why, in the DetailViewController, you created a -setText method instead of using the templates -setDetailItem instead? (which is what the template provides in the tableView:didSelectTableView⦠method)
Both versions produce the same result, so is there an advantage for one over the other?
Two text quibbles:
I think
Listing 1-5 #pragma mark Table view delegate should be Table view datasource
Doesn't affect anything, but might be confusing, if reader hasn't used tableViews often, about the difference between delegate and datasource methods, and the fact that the delegate and datasource are 2 separate things.
p. 15 Since we made no changes to the properties the line about matching them with an @synthesize seems a little out of place. Listing 1-16 Addition of @synthesize - nothing is added. The point that might be useful to bring out is the fact that the property for the UIPopoverController is not declared in the header, but in the implementation file, and the reason for doing so.
Looking forward to picking up much useful information.
Bob
|