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

# searchDisplayController(_:shouldReloadTableForSearch:)

Asks the delegate if the table view should be reloaded for a given search string.

## Declaration

```swift
optional func searchDisplayController(_ controller: UISearchDisplayController, shouldReloadTableForSearch searchString: String?) -> Bool
```

## Parameters

- `controller`: The search display controller for which the receiver is the delegate.
- `searchString`: The string in the search bar.

## Return Value

Return Value true if the display controller should reload the data in its table view, otherwise false.

## Discussion

Discussion If you don’t implement this method, then the results table is reloaded as soon as the search string changes. You might implement this method if you want to perform an asynchronous search. You would initiate the search in this method, then return false. You would reload the table when you have results.

## See Also

### Responding to changes in search criteria

- [searchDisplayController(_:shouldReloadTableForSearchScope:)](uikit/uisearchdisplaydelegate/searchdisplaycontroller(_:shouldreloadtableforsearchscope:).md)
