How do I use the UISearchBar and UISearchDisplayController
I have an app which displays quite a lot of data in a UITableView . I already added the UISearchBar and UISearchDisplayController in Interface Builder to the UITableView . But I do not know how to use it. If someone could provide a quick solution to this, I would be grateful. I just require it to work as you type to find matches of the search query in the UITableView cells (or from an array). UPDATE 1 : Here's the code from the numberOfRowsInSection method: -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { if (isSearching) { return [searchResults count];