我有一个有UISearchBar的UIViewController(不是UITableViewController)
当用户点击搜索栏时,我只想显示一行作为建议(例如,转到所有医院)
我试图找到使用UISearchConteroller的示例,但大多数使用它来搜索表视图
在这个链接中,答案是指在iOS 8中弃用的UISearchDisplayController
UISearchController in a UIViewController
如何在常规视图中使用UISearchController只显示一行?当用户点击此行时,会有一个操作
非常感谢