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

iOS14真机tabbar消失 #538

Closed CaiChenghan closed 3 years ago

CaiChenghan commented 3 years ago

iOS14真机上运行,tabbar会消失....

erickyim commented 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];
}