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

 

#pragma mark--headViewio

 

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

    if (section == 0) {tab

        return 50;return

    }else {ab

        return 10;

    }

}

 

 

#pragma mark--footerView

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

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

        return 0.01;

    }else {

        return 50;

    }

}

相关文章
相关标签/搜索