ios searchDisplayController搜索界面显示“无结果”、"No Results"
来源:互联网 发布:java nanotime 毫秒 编辑:程序博客网 时间:2024/05/17 10:06
“无结果”其实是一个UILabel来的,是searchDisplayController.searchResultsTableView的subview, 实现这个方法就可以隐藏掉:
-(BOOL)searchDisplayController:(UISearchDisplayController )controller shouldReloadTableForSearchString:(NSString )searchString {
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.001);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
for (UIView* v in self.searchDisplayController.searchResultsTableView.subviews) {
if ([v isKindOfClass: [UILabel class]]) {
v.hidden = YES;
break;
}
}
});
return YES;
}
0 0
- ios searchDisplayController搜索界面显示“无结果”、"No Results"
- UISearchDisplayController 去除“No Results”,“无结果” 的显示方法
- ios中 搜索关键字在结果中高亮显示
- 解决Everything无搜索结果
- IOS开发无数据的时候界面的显示问题
- IOS:自定义UISearchDisplayController的cancel和no results
- 如何在SharePoint里自定义WebPart将搜索结果显示在同一个界面
- ios笔记之- UISearchDisplayController 无搜索结果下的文字定义
- jenkins+robot framework持续集成,结果报告为“No results available yet”
- asp搜索结果的显示
- 搜索结果高亮显示
- 使用UISearchDisplayController显示搜索结果
- 搜索结果高亮显示
- QTP中Screen Recorder无内容,no movie is associated with the results.
- SharePoint Search之(四)Promoted Results—让搜索结果置顶
- 本地godoc搜索提示 Search index disabled: no results available解决
- App Store搜索结果中不再显示32位app,为iOS 11开路?
- Handling the Results 处理结果
- Android View绘制过程
- internDay2
- AFNetworking3.0 接口封装
- Linux定时任务cron和crontab
- TeXStudio安装与入门
- ios searchDisplayController搜索界面显示“无结果”、"No Results"
- vlan间的路由(五)
- 玄学算法CDQ分治
- 使用PickerView
- php composer安装 &&配置国内镜像
- iOS 使用UICollectionView实现图片轮播
- mokito matchers when的坑
- jqGrid增加toolbar
- wo or more files with the name of logging.cc will produce outputs to the same location.