From 5f6566f385b756ecd3c7c0a02ec1995893c678fe Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 9 May 2015 17:49:02 -0700 Subject: [PATCH] fix table view section header and footer heights --- Blog/PostsViewController.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Blog/PostsViewController.m b/Blog/PostsViewController.m index 5bb1b50..b56b52b 100644 --- a/Blog/PostsViewController.m +++ b/Blog/PostsViewController.m @@ -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 {