Swift iOS应用如何在我的应用中管理ViewController?

时间:2018-07-03 09:27:26

标签: ios swift uinavigationcontroller uitabbarcontroller

我是Swift的新手,我对应该如何管理ViewControllers :(

(我没有使用Storyboard,所以我了解的所有教程都使用Storyboard ...)

我有一个带有3个“主要” ViewController的应用,我使用tabBarController管理 (在AppDelegate中:)

self.tabBarController = TabBar() // TabBar is a UITabBarController object
self.window?.rootViewController = self.tabBarController

我还有其他一些ViewController(例如登录页面或我的左侧菜单)我不想在tabBar中显示。

但是我应该如何管理ViewController?我尝试了UINavigationController,但是我不明白应该如何设置它以及如何保持我的tabBarController和NavigationController?

谢谢!

0 个答案:

没有答案
相关问题