---
title: UITableViewHeaderFooterView
framework: uikit
role: symbol
role_heading: Class
path: uikit/uitableviewheaderfooterview
---

# UITableViewHeaderFooterView

A reusable view that you place at the top or bottom of a table section to display additional information for that section.

## Declaration

```swift
@MainActor class UITableViewHeaderFooterView
```

## Mentioned in

Adding headers and footers to table sections

## Overview

Overview Use UITableViewHeaderFooterView objects to manage the header and footer content of your table’s sections efficiently. A header-footer view is a reusable view that you can subclass or use as is. To configure the content and appearance of a header-footer view, you can set its contentConfiguration and backgroundConfiguration. To promote the reuse of your header-footer views, register them by calling the register(_:forHeaderFooterViewReuseIdentifier:) or register(_:forHeaderFooterViewReuseIdentifier:) method of the table view. In the tableView(_:viewForHeaderInSection:) or tableView(_:viewForFooterInSection:) method of your delegate object, call the table view’s dequeueReusableHeaderFooterView(withIdentifier:) method to create your view. That method returns a recycled view (if one is available) or creates a new view using the information you registered. A simple alternative to creating custom header-footer views is to implement the tableView(_:titleForHeaderInSection:) and tableView(_:titleForFooterInSection:) methods of your data source object. When you implement those methods, the table view creates a standard header or footer view and displays the text you supply.

## Topics

### Creating the view

- [init(reuseIdentifier:)](uikit/uitableviewheaderfooterview/init(reuseidentifier:).md)
- [init(coder:)](uikit/uitableviewheaderfooterview/init(coder:).md)

### Managing view reuse

- [reuseIdentifier](uikit/uitableviewheaderfooterview/reuseidentifier.md)
- [prepareForReuse()](uikit/uitableviewheaderfooterview/prepareforreuse().md)

### Configuring the background

- [defaultBackgroundConfiguration()](uikit/uitableviewheaderfooterview/defaultbackgroundconfiguration().md)
- [backgroundConfiguration](uikit/uitableviewheaderfooterview/backgroundconfiguration-52wng.md)
- [automaticallyUpdatesBackgroundConfiguration](uikit/uitableviewheaderfooterview/automaticallyupdatesbackgroundconfiguration.md)
- [backgroundView](uikit/uitableviewheaderfooterview/backgroundview.md)

### Managing the content

- [defaultContentConfiguration()](uikit/uitableviewheaderfooterview/defaultcontentconfiguration().md)
- [contentConfiguration](uikit/uitableviewheaderfooterview/contentconfiguration-6b4eg.md)
- [automaticallyUpdatesContentConfiguration](uikit/uitableviewheaderfooterview/automaticallyupdatescontentconfiguration.md)
- [contentView](uikit/uitableviewheaderfooterview/contentview.md)

### Managing the state

- [configurationState](uikit/uitableviewheaderfooterview/configurationstate-7xj7r.md)
- [setNeedsUpdateConfiguration()](uikit/uitableviewheaderfooterview/setneedsupdateconfiguration().md)
- [updateConfiguration(using:)](uikit/uitableviewheaderfooterview/updateconfiguration(using:).md)
- [configurationUpdateHandler](uikit/uitableviewheaderfooterview/configurationupdatehandler-49slo.md)
- [UITableViewHeaderFooterView.ConfigurationUpdateHandler](uikit/uitableviewheaderfooterview/configurationupdatehandler-swift.typealias.md)

### Deprecated

- [textLabel](uikit/uitableviewheaderfooterview/textlabel.md)
- [detailTextLabel](uikit/uitableviewheaderfooterview/detailtextlabel.md)

## Relationships

### Inherits From

- [UIView](uikit/uiview.md)

### Conforms To

- [CALayerDelegate](quartzcore/calayerdelegate.md)
- [CLBodyIdentifiable](corelocation/clbodyidentifiable.md)
- [CMBodyIdentifiable](coremotion/cmbodyidentifiable.md)
- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIAccessibilityIdentification](uikit/uiaccessibilityidentification.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UIAppearance](uikit/uiappearance.md)
- [UIAppearanceContainer](uikit/uiappearancecontainer.md)
- [UICoordinateSpace](uikit/uicoordinatespace.md)
- [UIDynamicItem](uikit/uidynamicitem.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIFocusItem](uikit/uifocusitem.md)
- [UIFocusItemContainer](uikit/uifocusitemcontainer.md)
- [UILargeContentViewerItem](uikit/uilargecontentvieweritem.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIPopoverPresentationControllerSourceItem](uikit/uipopoverpresentationcontrollersourceitem.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UITraitChangeObservable](uikit/uitraitchangeobservable-67e94.md)
- [UITraitEnvironment](uikit/uitraitenvironment.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)

## See Also

### Cells, headers, and footers

- [Configuring the cells for your table](uikit/configuring-the-cells-for-your-table.md)
- [Creating self-sizing table view cells](uikit/creating-self-sizing-table-view-cells.md)
- [Adding headers and footers to table sections](uikit/adding-headers-and-footers-to-table-sections.md)
- [UITableViewCell](uikit/uitableviewcell.md)
