---
title: "tableView(_:titleForFooterInSection:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdatasource/tableview(_:titleforfooterinsection:)"
---

# tableView(_:titleForFooterInSection:)

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

## Declaration

```swift
optional func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String?
```

## Parameters

- `tableView`: The table-view object asking for the title.
- `section`: An index number identifying a section of tableView.

## Mentioned in

Adding headers and footers to table sections

## Return Value

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

## Discussion

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 don’t implement this method or the tableView(_:viewForFooterInSection:) method, the table doesn’t display footers for sections. If you implement both methods, the tableView(_:viewForFooterInSection:) method takes priority.

## See Also

### Providing cells, headers, and footers

- [tableView(_:cellForRowAt:)](uikit/uitableviewdatasource/tableview(_:cellforrowat:).md)
- [tableView(_:titleForHeaderInSection:)](uikit/uitableviewdatasource/tableview(_:titleforheaderinsection:).md)
