O'Reilly logo

Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming by Erica Sadun, Rod Strougo, Maurice Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Moving On to the Debugger

Instruments showed a call to viewWillAppear:, a part of the view-opening cycle, and that gives you a place to start with the debugger. To be safe, put a breakpoint in both viewDidLoad and viewWillAppear: in ViewCarTableViewController.m. Optionally, you can practice editing breakpoints and set the ignore count to 1 since you know the first call works.

Run the app and reproduce the crash. If you did not set an ignore count, or if you have to try multiple times to reproduce the condition, continue using the keyboard shortcut Ctrl-Cmd-Y instead of the Product > Debug submenu.

The app crashes, but it does not hit one of the breakpoints. That gives you a possible clue. You need to look at what you know:

UINavigationController ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required