Reputation: 3685
I have a UITabBarController
inside of a UINavigationController
which originally had the navbar hidden before the view when the tabs were needed, though when I try to show the navbar inside the file nothing happens and if I do it just before the transition then it appears before I have pushed between the two controllers is there a way to stop this effect and make it so that when the next ViewController loads the navbar is on it when it appears?
This is not an OS specific issue as it occurs in iOS 6 and 7
Upvotes: 0
Views: 438
Reputation: 3685
Managed to work it out though gave conmulligan the credit because he gave me the idea which was to keep the navigation bar hidden and to embed the viewcontroller inside a new navigationcontroller so there was a whole new navbar
Upvotes: 0
Reputation: 7148
The UITabBarController
class is not designed to be used as a child of a UINavigationController
, which might explain why you're seeing odd behaviour. If you absolutely need a tab bar within a UINavigationController
, you'll probably have to roll your own. Otherwise, make your UITabBarController
the window's root view controller and populate it with navigation controllers.
Upvotes: 1