Instance Property

searchController

The search controller to integrate into your navigation interface.

Declaration

@property(nonatomic, retain) UISearchController *searchController;

Discussion

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

hidesSearchBarWhenScrolling

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