got his job, he had to add return @""; at the end for security.
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { if (tableView.tag==2) { if (section == 0) { return @"test1"; } if (section == 1) { return @"test2"; } } return @""; }
user594161
source share