我尝试重现与 example 的 fb messenger 中相同的推送屏幕的方式| .
我的架构:TabController -> NavController-> embedVC-> pushedVC。
pushedVC 必须在 tabbar 之上。我不想用 tabbar.isHidden = true 隐藏它。
最佳答案
尝试在需要隐藏标签栏的屏幕上使用 UIViewController.hidesBottomBarWhenPushed = true。 您也可以尝试将 UITabBarController 安排为 UINavigationController 中的子项。 据我所知(我可能是错的),UITabBarController 不会在 UINavigationController 中工作,所以有时有人使用他们的自定义 TabBarController。
关于ios - 在标签栏 Swift 上推送/呈现 View Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50681237/