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