2019-01-16刷新tableView的时候cell乱跳

产生的原因是在创建tablecell的时候系统给加了一个默认预估的cell高度,每次reload都用这个高度计算cell,禁用或者设为0就行了

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

猜你喜欢

转载自blog.csdn.net/weixin_33766805/article/details/86797192
今日推荐