ios reloadsection 位置偏移

  这个问题再iOS11之前不会发生,目前仅在iOS11机型上会出现。

  解决这个问题很简单,只需要你在初始化tableview的时候,把estimate的高度都设为0即可。

    self.tableView.estimatedRowHeight = 0;
    self.tableView.estimatedSectionHeaderHeight = 0;
    self.tableView.estimatedSectionFooterHeight = 0;

猜你喜欢

转载自www.cnblogs.com/muzhou/p/9229083.html