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;

    }

}

相關文章
相關標籤/搜索