一:tableview適配
self.extendedLayoutIncludesOpaqueBars=YES;
if(@available(iOS11.0, *)) {
self.txlTableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;
}else{
self.automaticallyAdjustsScrollViewInsets=NO;
}
self.txlTableView.contentInset=UIEdgeInsetsMake(20,0,49,0);
self.txlTableView.scrollIndicatorInsets=self.txlTableView.contentInset;
iOS11項(xiàng)目下面 表視圖——tableview的屬性 automationAdjustsScrollViewInsets棄用和tableView的HeaderView此再,F(xiàn)ooterView上下邊距過大導(dǎo)致頁(yè)面
底部的數(shù)據(jù)顯示不全君仆,需要在didFinishLaunchingWithOptions中加入以上代碼
二:系統(tǒng)導(dǎo)航欄返回按鈕在iOS11下面會(huì)向下偏移。(自定義的則不會(huì))
目前自己的處理方案是在iOS11下面改用自定義的導(dǎo)航欄來返回娶视。
三:tableview帶有分區(qū)的中間headview和footerview的中間間隔變大隘蝎。
原因是因?yàn)閕OS11下面tableview的
這兩個(gè)代理方法不會(huì)進(jìn)入贤斜。(iOS11以下則可以進(jìn)入)
解決以上間隔變大問題需要在viewDidLoad方法中設(shè)置tableview的頭視圖高度和尾視圖高度即可牍鞠。