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;
}

猜你喜欢

转载自blog.csdn.net/csdn2314/article/details/78055105
今日推荐