UITableViewController

A UITableView is a view object. Recall in the Model-View-Controller design pattern, which iOS developers do their best to follow, each class is exactly one of the following:

  • Model: Holds data and knows nothing about the user interface.

  • View: Is visible to the user and knows nothing about the model objects.

  • Controller: Keeps the user interface and the model objects in sync. Controls the flow of the application; for example, the controller might be responsible for showing a Really delete this item? message before actually deleting some data.

Thus, a UITableView, a view object, does not handle application logic or data. When using a UITableView, you must consider what else is necessary to get the table ...

Get iOS Programming: The Big Nerd Ranch Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.