iOS 11 push的时候,会窜一下的解决方案暂时还没有找到更好的方法,暂时这个方法可以解决问题,谁有更好的方法,可以分享下
_mainTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight - StatusRectHeight - NavRectHeight) style:(UITableViewStylePlain)];
if (@available(iOS 11.0, *)) {
_mainTableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
// Fallback on earlier versions
self.automaticallyAdjustsScrollViewInsets = NO;
}
网友评论