ios笔记之- UISearchDisplayController 无搜索结果下的文字定义
2015-01-03 15:54
471 查看
现在需要修改UISearchDisplayController 在搜索不到数据的情况下,显示为:
需要更改红框里面的内容,调用此方法以下方法:
shouldReloadTableForSearchString:(NSString *)searchString
{
for(UIView *subview in self.searchDisplay.searchResultsTableView.subviews) {
}
[(UILabel*)subview setText:@"XXXXXXX"];输入你想要定义的内容,就可以达到你想要的效果了
需要更改红框里面的内容,调用此方法以下方法:
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller
shouldReloadTableForSearchString:(NSString *)searchString
{
for(UIView *subview in self.searchDisplay.searchResultsTableView.subviews) {
if([subview isKindOfClass:[UILabel class]]) { [(UILabel*)subview setText:@"XXXXXXX"]; } } return YES;
}
[(UILabel*)subview setText:@"XXXXXXX"];输入你想要定义的内容,就可以达到你想要的效果了
相关文章推荐
- IOS UISearchDisplayController 点击搜索出现黑条问题解决方案
- iOS中的两种搜索方式UISearchDisplayController和UISearchController
- 解决UISearchDisplayController搜索结果滚动时,顶部透明的问题
- UISearchDisplayController(iOS < 8.0)实例应用实现搜索功能和VC展示效果, 以及代理方法的介绍
- iOS之默认搜索UISearchDisplayController
- 自定义UISearchDisplayController中搜索到结果的cell的位置
- ios UISearchDisplayController 实现 UITableView 搜索功能
- iOS中的两种搜索方式UISearchDisplayController和UISearchController
- ios UISearchDisplayController 实现 UITableView 搜索功能
- ios UISearchDisplayController 实现 UITableView 搜索功能 UISearchDisplayController 是苹果专为 UITableView 搜索封装
- iOS--搜索UISearchController&&UISearchDisplayController
- IOS-模糊搜索UISearchBar+UISearchDisplayController
- ios UISearchDisplayController 实现 UITableView 搜索功能
- iOS中的两种搜索方式UISearchDisplayController和UISearchController
- iOS之iPhone手机通讯录和短信搜索界面的实现以及UISearchController和UISearchDisplayController的浅析
- ios UISearchDisplayController 实现 UITableView 搜索功能
- IOS学习笔记——UISearchBar和UISearchDisplayController
- IOS UISearchDisplayController 点击搜索出现黑条问题解决方案
- ios UISearchDisplayController 实现 UITableView 搜索功能
- ios UISearchDisplayController 实现 UITableView 搜索功能