I have a UIViewController (not UITableViewController) which has UISearchBar
When the user clicks on the search bar, i want only one row to appear as a suggestion (e.g Go to all Hospitals)
I tried to find examples of using UISearchConteroller but most of them use it for searching a table view
in this link, The answer refers to a UISearchDisplayController which is deprecated in iOS 8
UISearchController in a UIViewController
How can I use UISearchController in regular view just to show one row? and when the user clicks this row, there will be an action
Thanks a lot