Search code examples
iosxcodeuisearchbargoogle-searchuisearchdisplaycontroller

Hinting values in a UISearchBar


I am saving the values entered in a search bar and I would like to display them when a new search is performed as a hint, in a way Google does in its searches. I would like to have a behavior similar to the UISearchDisplay in tables by overlaying the option under the search allowing the user to either select a value in the list or insert a new one.

Is it possible and is there some tutorial helping to implement it?

Thanks, Fabrizio


Solution

  • I ended up inserting the UIView with the UITableView in the StoryBoard main controller and wiring it to the UIView subclass adopting UITableSource and UITableDelegate and that seems to work fine.