tableview的Group样式下 footerView和headerView都有一个磨人的高度 需要把两个都设置一下

#pragma mark--headView

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {

    if (section == 0) {

        return 50;

    }else {

        return 10;

    }

}

#pragma mark--footerView

-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {

    if (section == 0||1||2||3) {

        return 0.01;

    }else {

        return 50;

    }

}

原文地址:https://www.cnblogs.com/Ninesday/p/5676877.html