我有适用于 iOS7 及更低版本的工作应用程序
我使用 UISearchDisplayController 在表中进行搜索。
问题 :
iOS8 中搜索后标题视图不显示。
如下图所示。
Before search :
After search :
I tried using UISearchController but also have same problem
i used this code
link https://github.com/dempseyatgithub/Sample-UISearchController
我在 TPSMastreViewController.m 中添加以下代码
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *v = [[UIView alloc] init];
v.backgroundColor = [UIColor greenColor];
return v;
}
I checked that delegate - (UIView *)tableView:(UITableView *)tableView
viewForHeaderInSection:(NSInteger)section
is not called in the case of iOS8.
Edit :
What i understand is only UITableViewDataSource delegate is called, UITableViewDelegate did not.
Please not that i set both delegate in ViewDidLoad
Question :
1] Is it an UI change ?
2] Any one have patch so that delegate method will call forcefully.