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;

    }

}

posted @ 2016-07-16 17:16  Ninesday  阅读(383)  评论(0编辑  收藏  举报