Class

UISearchContainerViewController

A wrapper for search results that you want to embed in a container view controller.

Overview

Although you can present a search controller object modally, you should never push one onto a navigation controller’s stack or use one as a child of another container view controller. Instead, embed an instance of this class and let it manage the presentation of the search controller’s content.

Topics

Initializing a Search Container View Controller

init(searchController: UISearchController)

Initializes and returns a search container view controller with the specified search controller object.

Getting the Search Controller

var searchController: UISearchController

The search controller being managed.

See Also

Search Interface

class UISearchBar

A text field–like control that supports text-based searches.

protocol UISearchBarDelegate

A collection of optional methods that you implement to make a search bar control functional.

class UISearchController

An object that manages the display of search results based on interactions with a search bar.

protocol UISearchResultsUpdating

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