🐢、关于iOS 11的无线调试功能;
- Mac和iPhone都要升级到最新系统;
- 将iPhone用数据线与Mac连接并在设备选中iPhone;
-
在桌面上方ToolBar找到Window-->Devices ansd Simulators,按照下方图例操作当设备后面出现那个小球就可以拔掉数据线进行无线调试了;
注:无线调试在程序重新运行时会非常慢,一旦进入程序后和连机调试无异。
🐢、适配
1. 在iOS11中UITableView的返回cell行高的代理方法一定要加上不然不会返回默认的44;
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 44;
}
2. 在iOS11中有可能设置UITableView的heightForHeaderInSection
和heightForFooterInSection
高度不管用了,加上以下代码就可以了;
_mainTableView.estimatedRowHeight = 0;
_mainTableView.estimatedSectionHeaderHeight = 0;
_mainTableView.estimatedSectionFooterHeight = 0;
/**************** 2017-10-25 更 ********************/
🐢、模拟器定位设置
使用场景:基于当前(某一固定)地理位置调试项目中的点聚合或POI检索功能;
使用方法:打开项目模拟器运行-->选中模拟器(toolBar上会显示模拟器的相关设置)-->点击Debug选项-->选择Location-->Custom Location -->输入对应的经纬度-->重新运行
屏幕快照 2017-10-25 10.10.16.png
屏幕快照 2017-10-25 10.10.39.png
Simulator Screen Shot - iPhone 7 - 2017-10-25 at 10.11.00.png
🐢、iOS11 环境下打包提交显示报错信息Missing Marketing Icon. iOS Apps must include a 1024x1024px Marketing Icon in PNG format. Apps that do not include the Marketing Icon cannot be submitted for App Review or Beta App Review.
解决方案:在工程中设置App Icon时需要设置一张1024*1024的Icon.
4F4B3BC3-149C-422C-9E96-6B6201786BD5.png