How no make a button show UINavigationBar only in 3 of 5 tabs in UITabBar?

Posted by Mike Rychev on Stack Overflow See other posts from Stack Overflow or by Mike Rychev
Published on 2010-03-25T08:48:10Z Indexed on 2010/03/25 8:53 UTC
Read the original article Hit count: 428

I have an app, where there's a UITabBar with 5 tabs. When user shakes the device, I want the UINavigationBar to push an UIImageView. When I show the UIImageView, I need to hide both tab and nav bars. After that, when user taps the UIImageView, the NavBar appears again and user can go to the UIImageView's parent view. I make the Nav Bar appear like this:

[[self navigationController] setNavigationBarHidden:NO animated:YES];

But in two tabs I have to make the Nav Bar appear, so user can switch to UIImageView's parentView and then, when the parent view appears, hide the nav bar. How can I do it?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone