tableView上边有空白,MJRefresh无限循环上拉刷新
2018-07-06 本文已影响0人
温水煮青蛙a
iOS11机型顶端留白问题
先加载视图到界面上再用下边的这句话才管用
先addSubViews
再
if (@available(iOS 11.0, *)) {
self.tableview.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
//在iOS11中MJRefresh随着tableView的变化容易出现无限循环上拉刷新现象
需要做如下处理
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;