1.iOS 11 由于方法弃用,在使用MJRefresh刷新时需要设置:
if (@available(iOS11.0, *)) {
_tableView.contentInsetAdjustmentBehavior =UIScrollViewContentInsetAdjustmentNever;
}
if (@available(iOS11.0, *)) {
_collectionView.contentInsetAdjustmentBehavior =UIScrollViewContentInsetAdjustmentNever;
}
2.Self-Sizing
在iOS11下是默认开启的,Headers, footers, and cells都默认开启
Self-Sizing
,所有estimated 高度默认值从iOS11之前的 0 改变为
UITableViewAutomaticDimension
iOS11下不想使用
Self-Sizing
的话,可以通过以下方式关闭:self.tableView.estimatedRowHeight = 0; self.tableView.estimatedSectionHeaderHeight = 0; self.tableView.estimatedSectionFooterHeight = 0;
3.在构建xib文件时会提示错误:只要去除
勾选就可以了
4.AppIcon 需要一张1024*1024 大小的图片
5.防止数组越界的方法上也会出现问题,具体如何解决详情请加QQ:1213685992