搜索显示在点击搜索栏之前不显示结果
我想我可能遗漏了一些明显的东西:
是否有一种简单的方法来修改 UISearchBar 或 UISearchDisplayController ,以便它不会在输入每个字母后重新加载视图,而是仅在单击“搜索”按钮后重新加载视图?
I think I may be missing something obvious:
Is there a simple way to modify the UISearchBar or UISearchDisplayController so that it doesn't reload the view after each letter typed but only after the Search button is hit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想通了。我发现的大多数示例都在此处搜索文本:
但我只是没有实现该方法,而是编写了我自己的搜索函数,我在此处调用了该函数:
I figured it out. Most of the examples I found search the text here:
but I just didn't implement that method and instead just wrote my own search function which I called here: