March 2013
Intermediate to advanced
1000 pages
34h 51m
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.
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.
Moreover, the UISearchBar itself can also have a delegate, ...
Read now
Unlock full access