Instance Method

tableView:titleForFooterInSection:

Asks the data source for the title of the footer of the specified section of the table view.

Declaration

- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section;

Parameters

tableView

The table-view object asking for the title.

section

An index number identifying a section of tableView .

Return Value

A string to use as the title of the section footer. If you return nil , the section will have no title.

Discussion

The table view uses a fixed font style for section footer titles. If you want a different font style, return a custom view (for example, a UILabel object) in the delegate method tableView:viewForFooterInSection: instead.

If you do not implement this method or the tableView:viewForFooterInSection: method, the table does not display footers for sections. If you implement both methods, the tableView:viewForFooterInSection: method takes priority.

See Also

Providing Cells, Headers, and Footers

- tableView:cellForRowAtIndexPath:

Asks the data source for a cell to insert in a particular location of the table view.

Required.

- tableView:titleForHeaderInSection:

Asks the data source for the title of the header of the specified section of the table view.