ESTabBarController icon indicating copy to clipboard operation
ESTabBarController copied to clipboard

removeFromParent 后 ESTabBar不见了

Open MQL9011 opened this issue 4 years ago • 5 comments

ESTabBar --------| UINavigationViewController ---------------|MainViewController Push-------------| FirstViewController Present------| SecondViewController

以上是我的层级结构 FirstViewController Present出一个模态窗口后, 我通过removeFromParentFirstViewController 移出导航栈, 之后在SecondViewController中dissmiss后 回到MainViewController后发现ESTabBar不见了, 但是重新push再返回就又有了.

MQL9011 avatar Nov 28 '19 03:11 MQL9011

请问问题解决了么

Jinzhengxuan avatar Jan 08 '20 06:01 Jinzhengxuan

木有

MQL9011 avatar Jan 14 '20 02:01 MQL9011

能来个demo么,我debug一下~

eggswift avatar Jun 26 '20 07:06 eggswift

iOS 14的锅,hidesBottomBarWhenPushed = true 只调一次就没问题! 如果多次调用了,在popToRoot前 设置回来 hidesBottomBarWhenPushed = false

LineShine avatar Apr 29 '21 13:04 LineShine

/** 处理iOS14特定版本页面返回时tabbar消失问题 */ override func popToRootViewController(animated: Bool) -> [UIViewController]? { if #available(iOS 14.0, *) { if self.viewControllers.count > 1 { self.topViewController?.hidesBottomBarWhenPushed = false } } return super.popToRootViewController(animated: animated) }

/** 处理iOS14特定版本页面返回时tabbar消失问题 */ override func popToViewController(_ viewController: UIViewController, animated: Bool) -> [UIViewController]? { if #available(iOS 14.0, *) { if self.viewControllers.count > 1 { self.topViewController?.hidesBottomBarWhenPushed = false } } return super.popToViewController(viewController, animated: animated) }

stack-info avatar Oct 20 '21 07:10 stack-info