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
最新推荐文章于 2023-05-18 17:00:41 发布
本文介绍了一种在iOS应用中根据不同设备屏幕尺寸调整TableView高度的方法,并针对iOS 11及以上的系统版本进行了特殊处理。
3322

被折叠的 条评论
为什么被折叠?



