ChenYilong / CYLTabBarController

[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
MIT License
6.91k stars 1.45k forks source link

[bug]:ios 14 ,tab栏消失 #528

Closed Bretra closed 3 years ago

Bretra commented 3 years ago



Base Info for this issue

  1. Version:Latest Version as here
  2. Language of App :Objective-C/Swift
  3. iOS System Version:iOS12
  4. Prototype(是否是真机):YES
  5. Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A

1. How to reproduce the problem.

2. Please help me in this way.

3. Here is a Demo.

4. Here is my Debug log


weweco123 commented 3 years ago

same problem.

CaiChenghan commented 3 years ago

我也有这样的问题,iOS14真机下,tabbar会消失...

Free-am commented 3 years ago

关注

peter2022Begin commented 3 years ago

是不是使用了popToRootViewControllerAnimated就会

seanLee commented 3 years ago

可以通过重写- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated临时解决这个问题,但是还是不清楚具体出现这个问题的原因.

peter2022Begin commented 3 years ago

可以通过重写- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated临时解决这个问题,但是还是不清楚具体出现这个问题的原因.

可以展示一下具体的代码吗

seanLee commented 3 years ago

可以通过重写- (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];
}
ChenYilong commented 3 years ago

新版本v1.29.1中已修复 

变更记录见: https://github.com/ChenYilong/CYLTabBarController/commit/062ad52c9cb0cee9fabbb9de6c3a0ad893713d86