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;
}
iOS11下拉放大BUG
最新推荐文章于 2020-08-04 07:12:56 发布