Chapter 4. Using and customizing table views

 

This chapter covers

  • Using table views and table view controllers
  • Implementing prototype table view cells
  • Handling selection of rows within the table view
  • Utilizing the Assets Library framework to retrieve photos
  • Using table views to list photo albums

It’s inevitable that you’ll need to organize and display something as either a list or a grid. If you think of the applications you often use, you’ll realize that almost all of them have views where information is displayed to you in this manner. Our Hello Time app is one of the very few examples where you don’t display anything in a list or grid format. The Photos app shows a grid of all of your photos or videos using a collection view. The Contacts app shows a list of the people in your address book using a table view. The Settings app also uses a table view but lists different options you can choose from. These can be seen in figure 4.1.

Figure 4.1. The Contacts app and Settings app both use table views to display information as a list.

4.1. Introduction to table views

4.2. Using table views to display data

4.3. Managing selection and deletion within a table view

4.4. Summary