iOS11默认开启Self-Sizing 如果你没用到预估高度 那么你尝试在Appdelegate.m中的didFinishLaunchingWithOptions方法中,加上如下代码,看看是否有效

if (@available(iOS 11.0, *)) {
        UITableView.appearance.estimatedRowHeight = 0;
        UITableView.appearance.estimatedSectionFooterHeight = 0;
        UITableView.appearance.estimatedSectionHeaderHeight = 0;
    }

  

 

相关文章:

  • 2022-12-23
  • 2021-08-26
  • 2021-05-31
  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2021-06-14
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
相关资源
相似解决方案