iOS11下关于使用刷新控件MJRefresh 页面跳动问题解决方法

原理网上很多,直接po方法

if(@available(iOS11.0, *)){

_tableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;

_tableView.contentInset=UIEdgeInsetsMake(64,0,49,0);//导航栏如果使用系统原生半透明的,top设置为64

_tableView.scrollIndicatorInsets=_tableView.contentInset;

_tableView.estimatedRowHeight=0;

_tableView.estimatedSectionHeaderHeight=0;

_tableView.estimatedSectionFooterHeight=0;

}

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容