tableView刷新数据后的偏移量问题

786 阅读1分钟

在初始化tableView时对预算高度设置如下即可解决:

    self.tableView.estimatedRowHeight = 0;
    self.tableView.estimatedSectionHeaderHeight = 0;
    self.tableView.estimatedSectionFooterHeight = 0;