Chapter 8. Tab Bar and Navigation Applications
WHAT YOU WILL LEARN IN THIS CHAPTER
How to create Tab Bar applications
How to display Tab Bar applications in different orientations
How to create navigation-based applications
How to navigate from one View window to another in a navigation-based application
The previous chapter demonstrated how to create a multiview application by using multiple view controllers. In fact, multiview applications are so common that the iPhone has a special category of application named after it: Tab Bar applications. A Tab Bar application consists of a Tab Bar commonly located at the bottom of the screen. Within the Tab Bar are Tab Bar items, which when touched display a particular view. One good example of a Tab Bar application is the Phone application in iPhone (see Figure 8-1). The Phone application contains five Tab Bar items: Favorites, Recents, Contacts, Keypad, and Voicemail. For example, when you touch the Favorites item, you see a list of editable favorite contacts. Touching the Contacts item displays the entire list of contacts stored on your iPhone.
Figure 8.1. Figure 8-1
In addition to Tab Bar applications, a type of application commonly found on the iPhone is the navigation-based application. A navigation-based application contains a UI that allows users to drill into a hierarchy of items. It has a navigation bar at the top of the screen showing ...
Get Beginning iPhone® SDK Programming with Objective-C® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.