适配iPhoneX

1、写到tableView,解决MJrefrsh底部“加载更多”文字在iPhoneX的最底部

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

      self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever ;
  } else {
      self.automaticallyAdjustsScrollViewInsets = NO;

  }


2、#define TabbarHeight     ([[UIApplication sharedApplication] statusBarFrame].size.height>20?83:49) // 适配iPhone x 底栏高度



猜你喜欢

转载自blog.csdn.net/u012236875/article/details/78252399