问题: reloadData刷新后,数据刷新了,tableView滚动条位置不变,tableView上移一点点
出现原因不明,
代码也是规范的.
底部上移应该不是iPhone X适配的问题,但万一呢,加代码验证后,果然不是
最后添加 ios11 兼容代码后reloadData正常
//ios11 (解决Grouped组头间距设置失效) _tableView.estimatedRowHeight = 0; _tableView.estimatedSectionHeaderHeight = 0; _tableView.estimatedSectionFooterHeight = 0;
转载请注明来源: tableView刷新后上移 - 朱凯博客
支付宝
微信