Reference: https://www.jianshu.com/p/5f033fdd4ddb
Under normal circumstances
if (@available(iOS 11.0, *)) {
self.estimatedRowHeight = 0;
self.estimatedSectionFooterHeight = 0;
self.estimatedSectionHeaderHeight = 0;
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
Can be solved
But if there is a demand to switch between different types of cell, still beating
Needs to be replaced with a simple reloadData
[UIView performWithoutAnimation:^{
[self reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone]; }]; [UIView performWithoutAnimation:^{ [self reloadData]; }];