Tab bar with ios storyboard

201 Views Asked by At

I have 6 ViewControllers and I need to show the tab bar only in 4 of them(viewcontroller 2,viewcontroller 3,view controller 4,viewcontroller 5). When I navigate using modal view controller from the 6th viewController to the 2nd viewcontroller, Tab bar does not show.

1

There are 1 best solutions below

2
foundry On

If you are presenting VC2 from VC6 modally, you won't see VC2's containing controller. That is by design.

But you UI logic is probably wrong anyway. Modal presentation presents a viewController out of context - the expectation is that you will then return (pop off the stack) via the presenting controller, not navigate elsewhere (for example, via a tab).

How did you get TO VC6 from one of your tab views? If you need more help perhaps you should post a Storyboard-style sketch showing your intent.