-1

I have a tab controller in which five viewControllers are there. I even have a side menu bar which has the list of other viewControllers . My problem is when i try to click any list to move to viewController it get pushed over the screen, hiding the tab bar at the bottom. How can i show the tab bar at bottom for this scenario. I got some ideas but it dint helped.

Abhishek
  • 184
  • 12
  • *What* gets *"pushed over the screen"*? The "side menu bar"? – DonMag Jun 27 '17 at 18:17
  • to push viewController listed in side menu – Abhishek Jun 27 '17 at 18:21
  • My guess is that what you need is a navigation controller between the tab bar controller and each of the child view controllers – crizzis Jun 27 '17 at 18:24
  • OK - show the code that is being called when you select a line on your "side menu"... I'm assuming it is a list of the Tabs, and you want to jump to that Tab? – DonMag Jun 27 '17 at 18:25

1 Answers1

0

You need to make sure that your tab bar controller is you root view controller.

  1. Your story board should look like

    tabbarController -> NavigationController -> VC1 -> VC2

  2. Your VC1 to VC2 segue has to be a show segue, not a present modally because the second one makes V2 the root view controller.

Fangming
  • 24,551
  • 6
  • 100
  • 90