1. iOS11 controller中自定義的返回圖標(biāo)會被系統(tǒng)navigationController的返回圖標(biāo)覆蓋更鲁,所以改用使用navigationController的返回按鈕涛酗,controller中的navigationBar返回按鈕不再顯示
2. 自定義的NavigationBar在顯示時比系統(tǒng)默認(rèn)上移了狀態(tài)欄的高度
在添加NavigationBar中時仙辟,需要偏移狀態(tài)欄的高度耀态,并高度減少狀態(tài)欄的高度
3. NavigationItem.titleView 自定義時會出現(xiàn)UI對齊問題
需要使用自定義的view肴颊,重寫方法:
- (CGSize)intrinsicContentSize
{
return UILayoutFittingExpandedSize;
}
4. UITableView footer和header會有額外的高度
需要設(shè)置:
self.estimatedSectionFooterHeight=0.f;
self.estimatedSectionHeaderHeight=0.f;
5. 下拉刷新控件出現(xiàn)下拉錯位的問題
需要設(shè)置:
scrollView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;
scrollView.contentInset=UIEdgeInsetsMake(64.f,0.f,49.f,0.f);
scrollView.scrollIndicatorInsets= scrollView.contentInset;
6. controller push到navigationController時奸例,出現(xiàn)crash CALayer bounds contains NaN
原因是navigationItem.titleView為UILabel時饼拍,如果設(shè)置text為@""可能出現(xiàn)赡模,改為text為nil