Many iOS applications show the user a list of items and allow the user to select, delete, or reorder items on the list. Whether an application displays a list of people in the user’s address book or a list of best-selling items on the App Store, it is a UITableView doing the work.
A UITableView displays a single column of data with a variable number of rows. Figure 10.1 shows some examples of UITableView.
In this chapter, you are going to start an application called Homepwner that keeps an inventory of all your possessions. In the case of a fire or other catastrophe, you will have a record for your insurance company. (“Homepwner,” by the way, is not a typo. If you need a definition for the word “pwn,” visit www.wiktionary.org.)
So far, your iOS projects have been small, but Homepwner will grow into a realistically complex application over the course of eight chapters. By the end of this chapter, Homepwner will present a list of Item instances in a UITableView, as shown in Figure 10.2.
To get started, open Xcode and create a new iOS Single View Application project. Configure it as shown in Figure 10.3.