分组模式tableHeaderView 会有默认44高度

UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectZero style:(UITableViewStyleGrouped)];

 

解决方法:

tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];

原文地址:https://www.cnblogs.com/qingzZ/p/15749933.html