iOS 隐藏导航栏后,取消 UITableView 向下偏移状态栏高度
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
iOS 隐藏导航栏后,取消 UITableView 向下偏移状态栏高度
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
本文标题:iOS 取消 UITableView 向下偏移状态栏高度
本文链接:https://www.haomeiwen.com/subject/bywpoctx.html
网友评论