tableView上边有空白,MJRefresh无限循环上拉刷新
作者:
温水煮青蛙a | 来源:发表于
2018-07-06 15:31 被阅读0次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;
本文标题:tableView上边有空白,MJRefresh无限循环上拉刷新
本文链接:https://www.haomeiwen.com/subject/ssqbuftx.html
网友评论