码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-07-16 20:02:33      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:

 

#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;

    }

}

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

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!