美文网首页
UITableViewStyleGrouped模式下如何控制Se

UITableViewStyleGrouped模式下如何控制Se

作者: liuxingzi | 来源:发表于2019-02-26 17:35 被阅读0次

    控制Section中间隔,我们知道用

    - (CGFloat)tableView:(UITableView*)tableView heightForFooterInSection:(NSInteger)section

    - (CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section

    但似乎显示出来的值和我们设置的值不一致,高出了一些。

    再设置

        self.tableView.estimatedSectionHeaderHeight = 0;

        self.tableView.estimatedSectionFooterHeight = 0;

    再看一下,就OK了,

    原因不明,按里来说estimatedSectionHeaderHeight 不应该影响显示呀

    相关文章

      网友评论

          本文标题:UITableViewStyleGrouped模式下如何控制Se

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