The past few days I have been working through Bill Dudney and Chris Adamson’s book iPhone SDK Development (The Pragmatic Programmers) to learn about iPhone app development. I worked through the Navigation chapter and built the example app, DVDCase. However, my app did not work as described. It would not move down into the Home or Work cabinet. The app would just quit in the simulator. I re-examined all of the code and NIB files, but still did not find the bug. So, I downloaded their example code from http://www.pragprog.com/titles/amiphd/source_code and started comparing code.
The culprit…forgetting one single line @synthesize cabinetController; in
RootViewController.m. Hopefully, this becomes a lesson learned - don’t forget
@synthesize after @property.
