Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. static NSString *SectionHeaderViewIdentifier = @"SectionHeaderViewIdentifier";
  2.  
  3. [self.tableView registerNib:[UINib nibWithName:@"SectionHeaderView" bundle:nil] forHeaderFooterViewReuseIdentifier:SectionHeaderViewIdentifier];
  4.  
  5. - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSinteger)section {
  6.  
  7. SectionHeaderViewClass *sectionHeaderView = (SectionHeaderView *)[tableView dequeueReusableHeaderFooterViewWithIdentifier:SectionHeaderViewIdentifier];
  8.  
  9. // Do stuff...
  10.  
  11. return sectionHeaderView;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement