Closed CaiChenghan closed 3 years ago
Seems like there is a confirmed bug on Xcode12 + iOS14.
iOS14 missing TabBar on popping multiple ViewControllers
https://developer.apple.com/forums/thread/660750
// fix: sometimes push and then popback no tabbar error
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
if (self.viewControllers.count == 1) {
viewController.hidesBottomBarWhenPushed = YES;
} else {
viewController.hidesBottomBarWhenPushed = NO;
}
[super pushViewController:viewController animated:animated];
}
iOS14真机上运行,tabbar会消失....