A set of methods that let you update search results based on information the user enters into the search bar.


protocol UISearchResultsUpdating


Updating the Search Bar

func updateSearchResults(for: UISearchController)

Called when the search bar becomes the first responder or when the user makes changes inside the search bar.



Inherits From

See Also

Search Interface

class UISearchContainerViewController

A view controller that manages the presentation of search results in your interface.

class UISearchController

A view controller that manages the display of search results based on interactions with a search bar.

class UISearchBar

A specialized view for receiving search-related information from the user.

Displaying Searchable Content by Using a Search Controller

Create a user interface with searchable content in a table view.

Using Suggested Searches with a Search Controller

Create a search interface with a table view of suggested searches.