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

# searchDisplayController(_:willShowSearchResultsTableView:)

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

## Declaration

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