iOS11

_tab.estimatedRowHeight = 0;

    if (@available(iOS 11.0, *)) {

        //当有heightForHeader delegate时设置

        _tab.estimatedSectionHeaderHeight = 0;

        //当有heightForFooter delegate时设置

        _tab.estimatedSectionFooterHeight = 0;

    }

 

/解决因为隐藏导航栏导致页面下沉的问题
if (@available(iOS 11.0, *)) {
_contentTV.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;
} else {
}

posted @ 2017-11-25 13:09  爱生活爱代码  阅读(414)  评论(0编辑  收藏  举报