As the design of table views using the grouped style changed considerably with iOS 7, I would like to hide (or remove) the first section header. So far I haven\'t managed to
I can't comment yet but thought I'd add that if you have a UISearchController
on your controller with UISearchBar
as your tableHeaderView
, setting the height of the first section as 0 in heightForHeaderInSection
does indeed work.
I use self.tableView.contentOffset = CGPointMake(0, self.searchController.searchBar.frame.size.height);
so that the search bar is hidden by default.
Result is that there is no header for the first section, and scrolling down will show the search bar right above the first row.