Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5: Using Tables for Navigation > Introducing the UINavigationController

Introducing the UINavigationController

The Apple iOS documentation describes a UINavigationController as a “container for several other views,” which is as good a way of describing it as I can think of. Shown in Figure 5–4, it gives you a top navigation bar and an optional toolbar at the bottom.

There’s also space for bar button items on the navigation bar. Between the top and bottom bar there’s a space for your custom content to be loaded into: it’s into this space that you’ll push and pop view controllers.

images

Figure 5–4. The components of UINavigationController

Interacting with the content inside the view controllers–tapping on a row, tapping on a button, and so on–is the cue to call the UINavigationController’s pushViewController:animated: and popViewController:animated: methods.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint