IOS 10.3.3, tableView layout problem, tableView has a sudden shift

iOS 10.3.3, there is a problem with the layout of tableView, as shown in the following figure, tableView has a sudden offset.

9ioac.png

the code is as follows:

- (void)viewWillLayoutSubviews{

    self.tableView.translatesAutoresizingMaskIntoConstraints = NO;
    [super viewWillLayoutSubviews];
    [self.tableView.bottomAnchor constraintEqualToAnchor: self.view.bottomAnchor constant: -52].active = YES;
    [self.tableView.leadingAnchor constraintEqualToAnchor: self.view.leadingAnchor].active = YES;
    [self.tableView.trailingAnchor constraintEqualToAnchor: self.view.trailingAnchor].active = YES;
    [self.tableView.topAnchor constraintEqualToAnchor: self.view.topAnchor constant: 75].active = YES;
 }

self.automaticallyAdjustsScrollViewInsets is set and does not work.

- (void)viewDidLoad {
    [super viewDidLoad];
    if (@available(iOS 11.0, *)) {
        self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    } else {
         self.automaticallyAdjustsScrollViewInsets = NO;
    }
}

in iOS 11.4, the layout is normal.

how to solve this problem?

Aug.29,2021

re-edit the problem. I don't know if there is a problem with the refresh. no, if there is a problem with the refresh, you can use

self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3cae1-4340f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3cae1-4340f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?