11. Editing UITableView

In the last chapter, you began an application that displayed a list of Possession instances in a UITableView. The next step in this application is allowing the user to interact with that table by moving, deleting, and inserting rows. Figure 11.1 shows what your Homepwner application will look like by the end of this chapter.

Figure 11.1. Homepwner in editing mode

image

Editing Mode

Every UITableView has an editing variable. When this boolean variable is set to YES, the UITableView enters editing mode, and the rows of the table can be manipulated by the user. The user can change the order of the rows, add rows, or remove rows. ...

Get iPhone Programming: The Big Nerd Ranch Guide 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.