May 2011
Beginner
834 pages
25h 19m
English
A table view is a common way to present the results of a search performed through a search field (a UISearchBar; see Chapter 25). This is such a standard interface, in fact, that a class is provided, UISearchDisplayController, to mediate between the search field where the user enters a search term and the table view listing the results of the search. The UISearchDisplayController needs the following things:
searchBar.
searchContentsController. The UISearchDisplayController will harness this view controller’s view and present its table of results modally on top of it.
searchResultsTableView. It can already exist, or the UISearchDisplayController will create it.
searchResultsDataSource and searchResultsDelegate. They will control the data and structure of the search results table. They are commonly the same object, as for any table view; moreover, they are commonly the view controller.
Read now
Unlock full access