<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDataSource/tableView(_:titleForFooterInSection:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDataSource(im)tableView:titleForFooterInSection:"
  },
  "title" : "tableView(_:titleForFooterInSection:)"
}
-->

# tableView(_:titleForFooterInSection:)

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

```
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`.

## 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`](/documentation/UIKit/UILabel) object) in the delegate method [`tableView(_:viewForFooterInSection:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:viewForFooterInSection:)) instead.

If you don’t implement this method or the [`tableView(_:viewForFooterInSection:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:viewForFooterInSection:)) method, the table doesn’t display footers for sections. If you implement both methods, the [`tableView(_:viewForFooterInSection:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:viewForFooterInSection:)) method takes priority.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)