xcode9 ios11适配
2017-10-13 本文已影响10人
lllaa
1、升级到Xcode9后新建一个工程,直接报错,如下图:

因为在iOS7中引入的Top Layout Guide和Bottom Layout Guide,这些布局在iOS 11中被弃用,取而代之的是Safe Area Layout Guide. 解决办法就是将下图中系统默认勾选的两项去掉就可以了

2、项目中用到了RealReachability来实时检测网络,但是用Xcode9打开后运行直接报错,如图:

解决办法:将缺少文件.m都在Compile Sources中添加上就可以了

3、MJRefresh上拉刷新,明明已经调用结束刷新,但是并没有作用,还在一直加载请求数据,如下图所示:

解决方法:
1
2
3self.tableView.estimatedRowHeight =0;
self.tableView.estimatedSectionHeaderHeight =0;
self.tableView.estimatedSectionFooterHeight =0;