iOS11下拉放大BUG

if (kScreenHeight == 812 ) {// iPhone x
    self.tableView.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight - kTabBarHeight - 35);
} else {
    self.tableView.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight - kTabBarHeight);
}


if (@available(iOS 11.0, *)) {// iOS 11
    self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
    self.automaticallyAdjustsScrollViewInsets = NO;
}

你可能感兴趣的:(iOS)