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

# tableView(_:heightForFooterInSection:)

Asks the delegate for the height to use for the footer of a particular section.

```
optional func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat
```

## Parameters

`tableView`

The table view requesting this information.

`section`

An index number identifying a section of `tableView` .

## Return Value

A nonnegative floating-point value that specifies the height (in points) of the footer for `section`.

## Discussion

Use this method to specify the height of custom header views returned by your [`tableView(_:viewForFooterInSection:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:viewForFooterInSection:)) method.

## See Also

[`tableView(_:viewForFooterInSection:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:viewForFooterInSection:))

Asks the delegate for a view to display in the footer of the specified section of the table view.

[`tableView(_:estimatedHeightForFooterInSection:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:estimatedHeightForFooterInSection:))

Asks the delegate for the estimated height of the footer of a particular section.



---

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)