Skip to content

Instantly share code, notes, and snippets.

@pratikshabhisikar
Created October 13, 2012 17:28
Show Gist options
  • Save pratikshabhisikar/3885454 to your computer and use it in GitHub Desktop.
Save pratikshabhisikar/3885454 to your computer and use it in GitHub Desktop.
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
static NSString *headerReuseIdentifier = @"TableViewSectionHeaderViewIdentifier";
UITableViewHeaderFooterView *sectionHeaderView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:headerReuseIdentifier];
sectionHeaderView.textLabel.text = @"I am header"; // Set your section header corresponding to the parameter section.
return sectionHeaderView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment