Chapter 8. Table View
A table view is an important and widely used graphical user interface object in the iPhone OS. Understanding table views is essential to writing iPhone applications. Fortunately, programming table views could not be easier.
This chapter will take you through a step-by-step journey to the world of table views. We start by presenting an overview of the main concepts behind table views in Section 8.1. After that, we present in Section 8.2 a simple table view application and discuss the mandatory methods you need to implement in order to populate and respond to user's interaction with the table view.
In Section 8.3, we show how easy it is to add images to table rows. Section 8.4 introduces the concept of sections and provides a table view application that has sections with section headers and footers.
In Section 8.5, we introduce the concept of editing a table view. An application that allows the user to delete rows is presented and the main ideas are clarified. In Section 8.6, we address the insertion of new rows in a table view. An application that presents a data entry view to the user and adds that new data to the table's rows is discussed. In Section 8.7, we continue our discussion of the editing mode and present an application for re-ordering table entries. The main concepts of reordering rows are presented.
In Section 8.8, we discuss the mechanism for presenting hierarchical information to the user, and an application that uses table views to present three levels ...