Created
October 13, 2012 17:29
-
-
Save pratikshabhisikar/3885461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { | |
static NSString *headerReuseIdentifier = @"TableViewSectionHeaderViewIdentifier"; | |
UITableViewHeaderFooterView *sectionHeaderView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:headerReuseIdentifier]; | |
if (sectionHeaderView != nil) { | |
// No header view presents in reusable queue. Create a new header view… | |
} | |
// Configure header view. | |
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