An Additional UIViewController

To see the real power of UINavigationController, you need another UIViewController to put on the navigation controller’s stack. Create a new Objective-C class (FileNewFile...). Name this class BNRDetailViewController and choose UIViewController as the superclass. Check the With XIB for user interface box (Figure 10.7).

Figure 10.7  Create UIViewController subclass with XIB

Create UIViewController subclass with XIB

In BNRDetailViewController.m, delete all of the code between the @implementation and @end directives so that the file looks like this:

#​i​m​p​o​r​t​ ​"​B​N​R​D​e​t​a​i​l​V​i​e​w​C​o​n​t​r​o​l​l​e​r​.​h​"​ @​i​n​t​e​r​f​a​c​e​ ...

Get iOS Programming: The Big Nerd Ranch Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.