|Aug 17, 2008, 04:14 PM||#1|
Hide the tab bar for certain tabs on UITabBarController
I have had a heck of a time trying to hide the tab bar when certain tabs are selected on a UITabBarController. I have tried:
- setHidesBottomBarWhenPushed: this only works when the tab item is a UINavigationController, and this boolean is set on one of the UIViewControllers that the navigation controller manages. Unfortunately, the view I want to hide it for is not a UINavigationController. I even went so far as to *wrap* the view in a UINavigationController, but when I called initWithRootViewController, it didn't hide the bottom bar.
- animating out, setting alpha = 0, hiding the tab bar: the tab bar will disappear, but there is a blank gap where the tab bar was that won't be filled by other content on the screen.
- replacing the tab bar view with my view: I tried myTabBarController.view = someView, hoping it would replace the whole view (including the tab bar) with myView. However, it only replaced the content area, and the tabBar still showed up.
I am at the end of my wit with this. I need to get that darn tab bar off my screen when displaying myView, but I still need myView to be one of the items available on the tab bar itself. Any ideas are welcome at this point! I've searched through every iPhone Dev forum and I haven't found any advice.
|Aug 17, 2008, 07:41 PM||#2|
I have been able to use hidesBottomBarWhenPushed just fine with view controllers inside navigation controllers inside tab bar controllers. Are you using this property instead of the method call?
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Resolved: Use View With Tab Bar & With Navigation Bar||PBG4 Dude||iPhone/iPad Programming||2||Mar 26, 2014 09:04 AM|
|Swtich between 2 specific tabs in Sarari like Ctrl-Tab in a pc||JohnDohe||OS X Mavericks (10.9)||2||Dec 25, 2013 12:29 AM|
|Safari: Tabs disappear when dragging on the tab bar||parish||OS X Mavericks (10.9)||2||Nov 12, 2013 04:38 PM|
|Resolved: UITabBarController show only 1 tab||igorladessa||iPhone/iPad Programming||1||Dec 19, 2012 07:52 AM|
|Anyone use tab + that allows you to have more than 8 open tabs in Safari?||TH55||iPhone||4||Oct 19, 2012 10:25 PM|
All times are GMT -5. The time now is 06:15 PM.