I have a tabBar Controller with 2 tabs: firstVC, secondVC. And when tabBarController appears i want to see on the screen this tabBar controller with 2 tabs and active controller(called main) not from this tabs. Is it possible?
Asked
Active
Viewed 22 times
0
-
Can you add a storyboard layout of what your are trying to achieve – OverD Dec 02 '17 at 07:46
-
Possible duplicate of [How to use Navigation Controller inside of UITabBarController with Storyboard on Swift](https://stackoverflow.com/questions/29458948/how-to-use-navigation-controller-inside-of-uitabbarcontroller-with-storyboard-on) – Caleb Dec 02 '17 at 07:52
-
I mean that i want to have 2 tabbarItems (firstVC, secondVC) and main VC as initial (selected) VC which is not showing in tabbarItem but currently active. – Dmitriy Greh Dec 02 '17 at 08:20
1 Answers
1
Yes. You can embed those 2 tabs in navigationControllers. Each of the 2 tabs will have its own stack of viewControllers.
Take a look at this answer for a detailed description.

bCode
- 136
- 9
-
I mean that i want to have 2 tabbarItems (firstVC, secondVC) and main VC as initial (selected) VC which is not showing in tabbarItem but currently active. – Dmitriy Greh Dec 02 '17 at 08:19
-
Your answer just about push... but main goal of question is about mainVC which must be hidden in tabbarItems. – Dmitriy Greh Dec 02 '17 at 08:23