---
title: "searchDisplayController(_:willUnloadSearchResultsTableView:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uisearchdisplaydelegate/searchdisplaycontroller(_:willunloadsearchresultstableview:)"
---

# searchDisplayController(_:willUnloadSearchResultsTableView:)

Tells the delegate that the controller is about to unload its table view.

## Declaration

```swift
optional func searchDisplayController(_ controller: UISearchDisplayController, willUnloadSearchResultsTableView tableView: UITableView)
```

## Parameters

- `controller`: The search display controller for which the receiver is the delegate.
- `tableView`: The search display controller’s table view.

## See Also

### Loading and unloading the table view

- [searchDisplayController(_:didLoadSearchResultsTableView:)](uikit/uisearchdisplaydelegate/searchdisplaycontroller(_:didloadsearchresultstableview:).md)
