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

# searchDisplayController(_:didHideSearchResultsTableView:)

Tells the delegate that the controller just hid its table view.

## Declaration

```swift
optional func searchDisplayController(_ controller: UISearchDisplayController, didHideSearchResultsTableView 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(_:willHideSearchResultsTableView:)](uikit/uisearchdisplaydelegate/searchdisplaycontroller(_:willhidesearchresultstableview:).md)
