Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Beginning iOS 5 Development – ERRATA (In My Humble Opinion)

Chapter 8

Page 256, last line of the page: “name your protocol” should be “name your category”, i guess.

Comments

  • edited July 2013

    Chapter 8

    Page 269, in the middle of the page: [sectionsToRemove release]; is pre-ARC. Solution: just remove this line.
  • edited July 2013

    Chapter 8

    Page 266, first half of the page:
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:sectionsTableIdentifier] autorelease];
    is pre-ARC and the initWithFrame:reuseIdentifier: method is deprecated since iOS 3.0.
    My solution:
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:sectionsTableIdentifier];
  • Chapter 8

    This is not an errata, it's just a suggestion:
    Pages 266 and 270, implementation of the searchBarSearchButtonClicked:
    I would add the following line to that method:
    [self.search resignFirstResponder];
    in order to make the keyboard disappear after the user taps the “Search” button.
  • Chapter 9

    Page 299, first line of code after the if block:
    childController.title = @"Disclosure Button Pressed";
    This line should be deleted, since the correct title for the view controller is set later, 5 lines after this one, to be the same value as the selectedMovie.
  • edited August 2013

    The Disclosure Buttons table view doesn't display any data

    About subclassing a subclass of UITableViewController: a post on my blog about a subtle error that the book drives you to make. This is why the Disclosure Buttons table view won't display any data, if you follow exactly the instructions given in the book.
Sign In or Register to comment.