Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Aug 17, 2008, 03:14 PM   #1
macrumors newbie
Join Date: Aug 2008
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.

dbredesen is offline   0 Reply With Quote
Old Aug 17, 2008, 06:41 PM   #2
Moderator emeritus
kainjow's Avatar
Join Date: Jun 2000
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?
kainjow is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How to hide the Menu bar at the top? hoosierxhoosier Mac Basics and Help 1 Feb 12, 2011 09:36 AM
tab bar for action buttons instead of mode? beachdog iPhone/iPad Programming 2 Aug 12, 2008 03:30 PM
Hide the menu bar trainguy77 Mac Applications and Mac App Store 11 Jul 15, 2006 01:27 AM
hiding the finder bar matthews1492 OS X 3 May 2, 2006 12:44 PM
Hiding the Menu Bar Digital Randy Mac Applications and Mac App Store 3 Jun 19, 2004 09:47 AM

All times are GMT -5. The time now is 03:19 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC