美文网首页
tableView上边有空白,MJRefresh无限循环上拉刷新

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