I have an application with 5 UIViewControllers each inside a corresponding UINavigationController, all tucked inside a UITabBarController that displays 5 tabs at the bottom of the screen.
I want to display another UIViewController (inside a UINavigationController) when a dialog button is pressed.
This view should only be loaded and unloaded programatically; ie. it should not appear in the tab bar. However, I want the tab bar to be visible always.
If I add the [UINavigationController view] to [self window] the Tab Bar is covered. If I add it to any other layer, the Navigation Controller adds on the compensation it has for the status bar so appears further down than expected.
A solution would be to have the 6th Nav Controller added to the Tab Bar with the others, but with its tabBarItem hidden. Then I can show it and hide it using the tabBars selectedIndex property.
Accessing the tabBarItem through the View Controller shows no obvious way of doing this.
Anyone have any ideas?
Thanks!