我有这个 UISearchDisplayController
,到目前为止它只能在有人点击 UISearchBar
时被激活(准备使用下拉 searchresulttableview
进行输入) >。有没有办法让按钮完成这项任务?我将不胜感激收到的任何答复。
最佳答案
您是否在按钮选择器中尝试过 [searchDisplayController.searchbar becomeFirstResponder]
?
关于ios - 单击按钮时如何激活 UISearchDisplayController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19779206/