美文网首页
tableView分组时不能取消掉footerView

tableView分组时不能取消掉footerView

作者: 丶小裤头灬 | 来源:发表于2018-01-25 11:12 被阅读21次

    如果tableView为group(分组模式)的时候,系统会给每一组自动分配一个headerView和一个footerView,如果想设置footerView为0,在代理里边最好不要写0,因为有时候还会显示出来,最好写0.0001f

    - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
        return 0.0001f;
    }
    
    - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
        return nil;
    }
    
    

    相关文章

      网友评论

          本文标题:tableView分组时不能取消掉footerView

          本文链接:https://www.haomeiwen.com/subject/sxzmaxtx.html