appdelegate的didFinishLaunchingWithOptions里设置:
if (@available(iOS 11.0, *)) {
[[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIApplicationBackgroundFetchIntervalNever];
[[UITableView appearance] setEstimatedRowHeight:0.f];
[[UITableView appearance] setEstimatedSectionHeaderHeight:0.f];
[[UITableView appearance] setEstimatedSectionFooterHeight:0.f];
}
网友评论