【发布时间】:2021-03-01 17:09:50
【问题描述】:
我有一个 UITabBarController,我正在将一些 ViewControllers 设置到它的 viewControllers 列表中,如下所示
let tabBar = UITabBarController();
tabBar.viewControllers = vcs;
当视图被加载时,vcs 列表中的第一个 ViewController 将被显示。
我想要的是显示一个不在vcs 列表中的 UIViewController(并且必须选择任何 tabBar)。
我只想在第一次加载视图时显示这个 UIViewController。之后,用户点击了其中一个 tabBarItems,我想加载关联的 ViewController。
所以我的问题是“显示一个 UIViewController”,它不在 vcs 列表中
【问题讨论】: