关于tableView在滚动时存在的偏移量问题

if (@available(iOS 11.0, *)) {
        // 版本适配
        <!--self.edgesForExtendedLayout = UIRectEdgeNone;-->
        <!--self.extendedLayoutIncludesOpaqueBars = NO;-->
        <!--self.modalPresentationCapturesStatusBarAppearance = NO;-->
        <!--self.automaticallyAdjustsScrollViewInsets = NO;-->
        self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }
    else{
        self.automaticallyAdjustsScrollViewInsets = NO;
    }


  if (@available(iOS 11.0, *)) {
    // 版本适配
  }
  // 或者
  #ifdef __IPHONE_11_0   
  #endif
 
posted @ 2019-06-13 16:09  wj0920wjx  阅读(541)  评论(0)    收藏  举报