Using Tab Bars and Pickers
In the previous chapter, you built your first multiview application. In this chapter, we’ll build another one—this time, creating a full tab bar application with five different tabs and five different content views. Building this application reinforces a lot of what we covered in Chapter 6. We’ll use those five content views to demonstrate a type of iOS control not yet covered, a picker view, or just a picker. You may not be familiar with the name, but you’ve almost certainly used a picker if you own an iPhone or iPod touch for more than 10 minutes. Pickers contain controls with dials that spin. You use them to input dates in the Calendar application or to set a timer in the Clock application, as shown in Figure 7-1. It is not quite as common on an iPad, since the larger display lets you present other ways of choosing among multiple items, but even there, it’s used by the Calendar application.