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

2017-11-20  本文已影响0人  MooMRiveR

原理网上很多,直接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;

}

上一篇 下一篇

猜你喜欢

热点阅读