Fork me on GitHub

UITableView heightForHeaderInSection遇到的坑

出现这种现象只需要把 heightforfoot改为0.01

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
   
    return 30;
}

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    return 0.01;
}

 最终效果

 

posted @ 2016-12-19 16:47  极度恐慌_JG  阅读(652)  评论(0编辑  收藏  举报