Graphics Programs Reference
In-Depth Information
An Additional UIViewController
To see the real power of
UINavigationController
, you need another
UIViewCon-
troller
to put on the navigation controller's stack. Create a new
Objective-C class
(
File
→
New
→
New File...
). Name this class
DetailViewController
and choose
UIViewController
as the superclass. Check the box
With XIB for user interface
(
Fig-
Figure 11.6 View controller with XIB subclass
In
DetailViewController.m
, delete all of the code between the
@implementa-
tion
and
@end
directives so that the file looks like this: