Closed Bretra closed 3 years ago
same problem.
我也有这样的问题,iOS14真机下,tabbar会消失...
关注
是不是使用了popToRootViewControllerAnimated就会
可以通过重写- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
临时解决这个问题,但是还是不清楚具体出现这个问题的原因.
可以通过重写
- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
临时解决这个问题,但是还是不清楚具体出现这个问题的原因.
可以展示一下具体的代码吗
可以通过重写
- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
临时解决这个问题,但是还是不清楚具体出现这个问题的原因.可以展示一下具体的代码吗
- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated {
if (@available (iOS 14.0, *)) {
if ([NSStringFromClass([viewController class]) isEqualToString:"YourTargetClass"]) {
UIViewController *_controller = self.rt_viewControllers.lastObject;
_controller.hidesBottomBarWhenPushed = false;
}
}
return [super popToViewController:viewController animated:animated];
}
Base Info for this issue
1. How to reproduce the problem.
2. Please help me in this way.
3. Here is a Demo.
4. Here is my Debug log