I am presently using a default configuration of the UISearchDisplayController build in Storyboard, where I dragged the UISearchBar and SearchDisplayController onto an existing UITableViewController
. Because it was dragged onto the TableViewController, there are two tables that I am managing - the self.tableView
, and self.searchDisplayController.searchResultsTableView
.
What I would like to accomplish is to only show the tableView
as the default table when a user opens this view, as well as reflected to show the user's search. As illustration (taken from a RW tutorial):
What I would want to achieve is that, as you are typing the word "egg", the tableView
of RecipeBookVC would get rid of the rows without "egg", so you are left with the results viewed in self.tableview
without having to see it from the resultsTableView
. (Preferably also without hiding the Navigation Bar, so the search feels more like a "filter" rather than a search)
Thank you!