Skip to content

Instantly share code, notes, and snippets.

@snosrap
Created March 11, 2017 16:58
Show Gist options
  • Save snosrap/731d78fe29807bd512b5e3b22c30941f to your computer and use it in GitHub Desktop.
Save snosrap/731d78fe29807bd512b5e3b22c30941f to your computer and use it in GitHub Desktop.
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {
if([view isKindOfClass:UITableViewHeaderFooterView.class]) {
((UITableViewHeaderFooterView *)view).textLabel.text = [self tableView:tableView titleForHeaderInSection:section];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment