Created
November 5, 2013 18:21
-
-
Save psobko/7323590 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
{ | |
UITableViewHeaderFooterView *headerView = [[UITableViewHeaderFooterView alloc] init]; | |
[headerView.contentView addSubview:self.someView]; | |
return headerView; | |
} | |
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { | |
return CGRectGetHeight(self.someView.frame); //play around with this value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment