iOS What The Fuck UITableView
来源:互联网 发布:安卓秒变iphone软件 编辑:程序博客网 时间:2024/05/19 18:00
一.点击searchbar 下面searchResultsTableView不透明
- (void)searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller{ CGRect testFrame = CGRectMake(0, self.searchBar.frame.size.height, self.searchBar.frame.size.width, self.view.frame.size.height - self.searchBar.frame.size.height); self.searchDisplayController.searchResultsTableView.frame = testFrame; [self.searchBar.superview addSubview:self.searchDisplayController.searchResultsTableView]; controller.searchResultsTableView.hidden = NO;}-(void) searchDisplayController:(UISearchDisplayController *)controller didHideSearchResultsTableView:(UITableView *)tableView{ CGRect testFrame = CGRectMake(0, self.searchBar.frame.size.height, self.searchBar.frame.size.width, self.view.frame.size.height - self.searchBar.frame.size.height); self.searchDisplayController.searchResultsTableView.frame = testFrame; [self.searchBar.superview addSubview:self.searchDisplayController.searchResultsTableView]; controller.searchResultsTableView.hidden = NO;}-(void) searchDisplayControllerWillEndSearch:(UISearchDisplayController *)controller{ controller.searchResultsTableView.hidden = YES;}
必要的位置加上 [self.searchDisplayController.searchResultsTableView reloadData];刷新搜索数据
0 0
- iOS What The Fuck UITableView
- what the fuck is REST
- What the fuck life I'm going
- Flask-wtf,wtforms,What The Fuck!!!
- what fuck
- what a fuck memset!
- what fuck it is
- 求1+2+…+n(限制条件很变态 what the fuck!)
- What the Fuck?年薪30万的码农不如公务员
- fuck the 2011 !
- 最简单,最自由的开源许可!DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- what fuck are you doing now?
- what a fuck!这是什么鬼东西?
- what a fuck!这是什么鬼东西?
- Fuck the Editor of Eclipse
- fuck
- fuck
- fuck
- Cocos2dx个人笔记之屏幕适配
- 数据库删除重复数据
- zabbix使用外部邮箱账号发送报警邮件设置
- iOS8 以上版本的定位问题
- 横竖屏切换导致适配出现问题(独家)
- iOS What The Fuck UITableView
- iOS开发之添加自定义字体
- phpcms模拟登陆执行已经抓取到的网址进行采集内容
- IDEA无法编译含BOM文件的问题解决方案
- 模版字符串实例:模板编译
- 《pro git》学习笔记
- 深入理解Android View
- 批量ssh执行命令
- 机器学习与数据挖掘网上资源搜罗