Graphics Programs Reference
In-Depth Information
Editing Mode
UITableView has an editing property, and when this property is set to YES , the
UITableView enters editing mode. Once the table view is in editing mode, 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. Editing mode does not allow the user to edit the content of a row.
But first, the user needs a way to put the UITableView in editing mode. For now, you're
going to include a button that toggles editing mode in the header view of the table. A head-
er view appears at the top of a section of a table and is useful for adding section-wide or
table-wide titles and controls. It can be any UIView instance. There's also a footer view
for the bottom of a section that works the same way. Figure 10.2 shows a table with two
sections. Each section has a UISlider for a header view and a UILabel for a footer
view.
Figure 10.2 UITableView header and footer views
 
Search WWH ::




Custom Search