When iOS hides the navigation bar, cancel UITableView to offset the status bar height downward

if(@ the available (iOS 11.0. *)) {self. TableView. ContentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; }else {
    self.automaticallyAdjustsScrollViewInsets = NO;
}
Copy the code