我有一个UISearchBar
和一个 UISearchBarDisplayController
由xib设立。
搜索无结果后,表中某些行显示“无结果”。
如何修改默认文本?
最佳答案
你也可以试试这个。
- 在搜索显示 Controller 的 TableView 委托(delegate)/数据源中,将 -numberOfRowsInSection: 抑制为最小值 1。
- 然后在 -cellForRowAtIndex: 方法中,如果数据源计数为零,请将 TableView 单元格的标签更改为“正在搜索...”之类的内容
关于iphone - 如何在 UISearchDisplayController 中将默认文本更改为 "No results",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9175941/