0

Here the basic navigation scheme in my application

https://i.stack.imgur.com/xaDtw.jpg

Once I access the first view of the Tabbed View Controller, the TabView button interface is not present, rather only the top navbar with a "back" button. I want the View governed by both controllers. I've seen a lot of posts around here about this but they're all severely outdated and any pages linked to are no longer available.

Gabriel.Massana
  • 8,165
  • 6
  • 62
  • 81
Jesse Meyer
  • 315
  • 1
  • 3
  • 12

1 Answers1

1

You need to change this:

      NavController-->tabBarController
                               |
                               |
                               |->Item1ViewController
                               |
                               |->Item2ViewController
                               |
                               |->Item3ViewController

To this:

                      tabBarController
                               |
                               |
                               |-->NavController->Item1ViewController
                               |
                               |-->NavController->Item2ViewController
                               |
                               |-->NavController->Item3ViewController

How you manage this part:

-->NavController-->ViewController-->TabBarController

Depends on what you are aiming to do... is that viewController a loginScreen for example? You have various options such as

-->NavController-->ViewController--[modal segue]-->TabBarController

-->TabBarController-->Item1ViewController--[modal segue]-->loginController

That's a broader app design issue...

I have related answers here: My Tab bar controller disappears after a push segue

and here: How to handle UINavigationControllers and UITabBarControllers iOS 6.1

Community
  • 1
  • 1
foundry
  • 31,615
  • 9
  • 90
  • 125
  • Nav->View->Tab is exactly a login screen. I think the key there is your modal suggestion. Thanks for all this insight. I'll play with this and if it works, will accept this as the answer. – Jesse Meyer Apr 18 '13 at 12:07