Graphics Programs Reference
In-Depth Information
There are many methods here, but notice the two marked
required method
. For
Item-
sViewController
to conform to
UITableViewDataSource
, it must implement
tableView:numberOfRowsInSection:
and
tableView:cellForRowAtIndexPath:
. These methods tell the table view how
many rows it should display and what content to display in each row.
Whenever a
UITableView
needs to display itself, it sends a series of messages (the re-
quired methods plus any optional ones that have been implemented) to its
dataSource
.
The required method
tableView:numberOfRowsInSection:
returns an integer