问题页面:
self.myTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0,
SCREEN_WIDTH, SCREEN_WIDTH) style:UITableViewStylePlain];
添加代码
if (@available(iOS 15.0,*)) {
self.myTableView.sectionHeaderTopPadding = YES;
}
留白就去掉了