fix table view section header and footer heights

This commit is contained in:
Sami Samhuri 2015-05-09 17:49:02 -07:00
parent 142ff60dc7
commit 5f6566f385

View file

@ -392,8 +392,12 @@ static NSString *const StateRestorationBlogStatusTextKey = @"blogStatusText";
return [self postCollectionForSection:section].title;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
return [super tableView:tableView viewForHeaderInSection:section];
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
return 40;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
return 0.01;
}
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {