IOS 11 tableView 分页 执行reload() 时出现闪动

来源:互联网 发布:环球英语怎么样知乎 编辑:程序博客网 时间:2024/05/22 01:48
有段时间没有写东西了,这段时间也是在苦逼的敲着代码。
前段时间写了个一个项目tableView 分页当执行reload() 方法时出现了闪动。找了很久最终还是找到了解决的方法
tableView 初始化的时候加入下面几行代码

    tableView.estimatedRowHeight = 0;

    tableView.estimatedSectionFooterHeight = 0;

    tableView.estimatedSectionHeaderHeight = 0;


阅读全文
0 0
原创粉丝点击