Instance Property


The search controller to integrate into your navigation interface.


@property(nonatomic, retain) UISearchController *searchController;


When a view controller in your navigation interface supports search, assign the corresponding search controller to this property. The navigation controller integrates the search bar from your search controller into the navigation bar interface, presenting a single bar for both search and navigation. Use the hidesSearchBarWhenScrolling property to control the visibility of the search bar when scrolling.

See Also

Integrating Search Into Your Interface


A Boolean value indicating whether the integrated search bar is hidden when scrolling any underlying content.