Hi,
I have an tabBar app, one tab consists of an navigation controller. When I push a view the tabBar should be hidden, just like in the ipod app. I tried this, but it doesn't work:
Your NewViewController is a UIViewController, correct? There's a hidesBottomBarWhenPushed property. Set it and let the navcontroller handle the rest for you.
Is there a way i can hide Tabbar controller on first 3 views and show it on the 4 view.
I am using navigation controller and it is a window based project.
I don't want Tabbar controller at all on first three view.
I'm having a similar issue.
I have a UITabBarController which is declared in the app delegate, and added to the window as a subview. Each tab in the tab bar controller has a view with a navigation controller and a table view. When I drill down to the last view on the stack (which is just a view, not a table view) I want to hide to tab bar so that I get a nice full screen.
I've tried setting the "hidesBottomBarWhenPushed" property to "YES" in the TableViewController Class, just before I push the detail view onto the stack like so:
Unfortunately it doesn't do the trick. I'm guessing it might be because the tab bar controller is declared in the appdelegate or something of the sort.
Try to hide it before and after the detail view get called.
That means you have to hidesBottomBarWhenPushed at the ViewDidLoad and ViewWillAppear methods.
Hope this helps, if you still have the issue.
Quote:
Originally Posted by GabrielV.
Hi,
I'm having a similar issue.
I have a UITabBarController which is declared in the app delegate, and added to the window as a subview. Each tab in the tab bar controller has a view with a navigation controller and a table view. When I drill down to the last view on the stack (which is just a view, not a table view) I want to hide to tab bar so that I get a nice full screen.
I've tried setting the "hidesBottomBarWhenPushed" property to "YES" in the TableViewController Class, just before I push the detail view onto the stack like so:
Unfortunately it doesn't do the trick. I'm guessing it might be because the tab bar controller is declared in the appdelegate or something of the sort.
I don't know how much this helps your specific problem, but I am trying to do the same thing.
I have made some progress but have not got the problem completely worked out yet.
but what I found is that if you put the following line of code in your "didSelectRowAtIndexPath" method of your UITableView, the viewController pushes the tabbar, but I can get it to reappear when I click to go back to the UITableView:
self.hidesBottomBarWhenPushed = YES; //put in didSelectRowAtIndexPath
Try to hide it before and after the detail view get called.
That means you have to hidesBottomBarWhenPushed at the ViewDidLoad and ViewWillAppear methods.
Hope this helps, if you still have the issue.
It didn't do the trick for me.. do you have any other suggestions?
Basically, I add the tab bar controller to the window in the app delegate. In each tab there's a view controller containing a navigation controller, which in turn displays a table view which can be drilled down. There's 3 levels in the table view, then there's a detail view. When the detail view is shown, I'd like to hide the tab bar.. still no luck. Please let me know if you have any sort of solution. And if you know a better way to display a tab bar with nav controllers and table views I'd like to hear that too. Thanks!!
if you want an logoin page, I would suggest just present an viewcontroller modal on the first viewcontroller in your tabbarcontroller should do the trick.
__________________
If my answer helped you, you might want to help me.
Make a donation via PayPal.
if you want an logoin page, I would suggest just present an viewcontroller modal on the first viewcontroller in your tabbarcontroller should do the trick.
Oh yea I didn't know about modal view controllers, looks like exactly what I need...
However, when you say " in your tabbarcontroller should do the trick" thats reffering to the loction of the piece of code right?