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

# searchDisplayController(_:willHideSearchResultsTableView:)

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

## Declaration

```swift
optional func searchDisplayController(_ controller: UISearchDisplayController, willHideSearchResultsTableView 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

### Showing and hiding the table view

- [searchDisplayController(_:willShowSearchResultsTableView:)](uikit/uisearchdisplaydelegate/searchdisplaycontroller(_:willshowsearchresultstableview:).md)
- [searchDisplayController(_:didShowSearchResultsTableView:)](uikit/uisearchdisplaydelegate/searchdisplaycontroller(_:didshowsearchresultstableview:).md)
- [searchDisplayController(_:didHideSearchResultsTableView:)](uikit/uisearchdisplaydelegate/searchdisplaycontroller(_:didhidesearchresultstableview:).md)
