I have a UITableView
with a UITableViewStyleGrouped
style. I also add a table header view (not section but table). The problem is that there is a space between the start of the table view and the header view.
self.tableView.tableHeaderView = myHeaderView;
Any idea how I can get rid of this? This does not happen if I use a UITableViewStylePlain
style
I think you are set headerView frame in viewController.
Design tableView headerView in storyboard itself. or If you are not using storyboard/XIB change the header height.
Hop it will solve your problem .