I have a four UITableView cell one after another. On iOS 10.3 the first cell is right after the status bar but in iOS 11 there is some space between the status bar and the first cell.

I have a four UITableView cell one after another. On iOS 10.3 the first cell is right after the status bar but in iOS 11 there is some space between the status bar and the first cell.

I had the similar issue in iOS 11. The empty spaces was header and footer. In iOS < 11 it was enough to set heightForHeaderInSection and heightForFooterInSection to CGFLOAT_MIN. In iOS 11 I had also to return nil in viewForHeaderInSection and viewForFooterInSection.
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection: (NSInteger)section {
return CGFLOAT_MIN;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
return CGFLOAT_MIN;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
return nil;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
return nil;
}