有没有办法消除“无结果”来自 UISearchDisplayController 的标签?
我有一个使用新的 sdk3 UISearchDisplayController 的 Three20 控制器。 我还有一个从网络加载的模型,似乎无论我做什么, UISearchDisplayController 的默认行为都是显示“无结果”标签。 有没有办法让它消失并显示其他东西?
I have a three20 controller that is using the new sdk3 UISearchDisplayController.
I also have a model that is loaded from the network, it seems that no matter what I do the default behavior for the UISearchDisplayController is show "No Results" label.
Is there a way to make it go away and show something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要修改“无结果”文本,您需要在 TTTableViewDataSource 中实现 titleForEmpty 方法。
To modify the "No Results" text you need to implement the titleForEmpty method in your TTTableViewDataSource.
在 Three20 源代码中搜索字符串“No Results”并将其更改为@“”。
search the Three20 source code for the string "No Results" and change it to @"".