关于iOS11上MJRefresh tabview刷新后,重新加载另一组数据, 回不到顶部或者头尾显示混乱等问题解决

MJRefresh在iOS11上存在很多bug

比如在iphoenx上首尾仍会显示的问题 

刷新数据后tableview置顶不上去等问题

虽然官方给出了适配方案  但是问题还没有的到解决

比如tabview刷新后,重新加载另一组数据, 回不到顶部问题

期望效果:

现在效果:

 

 

问题解决:

if (@available(iOS 11.0, *)) {
        tableView.estimatedRowHeight = 0;
        tableView.estimatedSectionFooterHeight = 0;
        tableView.estimatedSectionHeaderHeight = 0;
        tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }

 

 

 

参考链接

 

posted @ 2018-03-05 10:40  高晓牛  阅读(1181)  评论(0编辑  收藏  举报