ios - 在标签栏 Swift 上推送/呈现 View Controller

标签 ios swift uinavigationcontroller uitabbarcontroller

我尝试重现与 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/

相关文章:

ios - UITableView 仅在第二次尝试时将数据发送到 Detail View Controller

objective-c - 按下按钮时获取 UITableView 单元格的行

ios - 如何为文本文件制作 iOS Swift "In App Purchases"托管内容 pkg 文件,其中包含应嵌入 View Controller 的句子?

objective-c - UIView 动画 - 什么时候为某些属性(例如比例和位置)设置动画?

swift - navigationController 在 swift 中为 nil

ios - 如何知道蓝牙设备连接/断开状态回调到后台运行的iOS应用程序?

没有 Storyboard的Swift实例化ViewController?编程

ios - 使用 .Value 和 .ChildAdded 检索数据

ios - 使用 UINavigationController 弹出顶 View 时不再调用 viewDidLayoutSubviews

ios - 在 animateAlongsideTransition block 内的 UIImage 上进行交叉溶解