您好,欢迎来到知库网。
搜索
您的当前位置:首页iOS11踩坑记录

iOS11踩坑记录

来源:知库网

AppIcon不显示

导航栏设置透明无效

 原因:
 解决:未解决

UITableview UICollectionView搭配MJRefresh在iOS11下的适配

tableView.estimatedRowHeight = 0;
 tableView.estimatedSectionHeaderHeight = 0;
  tableView.estimatedSectionFooterHeight = 0;
// TableView懒加载中
_tableView.rowHeight = UITableViewAutomaticDimension;
        _tableView.estimatedRowHeight = 10.f;
        if (@available(iOS 11.0, *)){
            _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
            _tableView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
            _tableView.scrollIndicatorInsets = _tableView.contentInset;
        }

// Masonry适配
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        if (@available(iOS 11.0, *)) {
           make.top.equalTo(view.mas_top).offset(64);
        } else {
           make.top.equalTo(view.mas_top).offset(0);
        }
        make.left.equalTo(view.mas_left).offset(0);
        make.bottom.equalTo(view.mas_bottom).offset(0);
        make.right.equalTo(view.mas_right).offset(0);

    }];

这样在MJ闲置时,上下不会有空白或遮住cell,reloadData时也不会出现跳页现象。

3.1.15.1版的MJRefresh上拉加载触发多次

 描述:MJ上拉加载时触发了7次,目前没有找到解决方法,未在作者的Github主页找到方法。

Copyright © 2019- zicool.com 版权所有 湘ICP备2023022495号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务