Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-02-2008, 11:58 AM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
bonehead is an unknown quantity at this point
Default Dynamically hiding tab bar in UITabBarController?

I'm creating a view controller that emulates the Photos "slide viewer" to the extent possible. I'd like to be able to hide the status bar, nav bar, and tab bar (my app uses a UITabBarController) dynamically, after an idle timeout, and then re-show them when the user taps the screen.

I haven't figured out how to hide the tab bar normally displayed by UITabBarController. Is there a straightforward way to do this?
bonehead is offline   Reply With Quote
Old 05-02-2008, 12:06 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 298
javid.alimohideen is an unknown quantity at this point
Default Re: Dynamically hiding tab bar in UITabBarController?

I was looking for a similar functionality in may application. In my case, I just wanted to slide the Navigation bar up/down (e.g., Maps search, when clicked on search bar, the nav bar slides down)
The way, I did it, I access the navigation Controller property of my view controller and just offset the views to either move up or down inside a animation block.
Code:
-(void) setViewMoveUp:(BOOL) value
{
 [UiView beginAnimations: nil context: NULL];
 [UiView setAnimationDuration: 0.3];

 NSArray *subViews = [self.navigationController.view subViews];
foreach (UIView *view on subViews)
{
  if (value)
   // do something
  else
   // do something
}
[UIView commitAnimations];
}
javid.alimohideen is offline   Reply With Quote
Old 05-02-2008, 12:55 PM   #3 (permalink)
New Member
 
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
bonehead is an unknown quantity at this point
Default Re: Dynamically hiding tab bar in UITabBarController?

Interesting suggestion-- I'll give it a shot. Thanks!
bonehead is offline   Reply With Quote
Old 05-02-2008, 01:02 PM   #4 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 298
javid.alimohideen is an unknown quantity at this point
Default Re: Dynamically hiding tab bar in UITabBarController?

Let me know if you have any success with the tab bar fading in/out, I am looking for the exact same functionality in my app to.

Thanks,
Javid
javid.alimohideen is offline   Reply With Quote
Old 05-02-2008, 01:26 PM   #5 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
scottiphone is on a distinguished road
Default Re: Dynamically hiding tab bar in UITabBarController?

Set it's alpha alpha to 0 to fade. 1 to fade in.
Check the animation section in the programmers guide.
(Note that the guide is usually updated with each new SDK so if you only have the original it may be out of date)
scottiphone is offline   Reply With Quote
Old 05-02-2008, 06:00 PM   #6 (permalink)
New Member
 
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
bonehead is an unknown quantity at this point
Default Re: Dynamically hiding tab bar in UITabBarController?

Thanks for the hiding and alpha tips -- those work great.

However, the problem I'm having now is that, even if I try to force my content view's size to full screen, it seems that something (the UITabBarController ?) is forcing my content view to remain inside the bounds defined by the navigation bar and the tab bar.

So now I have a screen with nav bar and tab bar hidden, but the main content view is smaller than the full screen.

Is it necessary to set something up in the plist file to allow the content view to take the whole screen?
bonehead is offline   Reply With Quote
Old 06-12-2008, 11:30 PM   #7 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 71
halusha is an unknown quantity at this point
Default Re: Dynamically hiding tab bar in UITabBarController?

Did you guys ever figure this out? I want to hide the tab bar when one of my table views goes into edit mode.
halusha is offline   Reply With Quote
Old 06-14-2008, 01:08 PM   #8 (permalink)
New Member
 
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
bonehead is an unknown quantity at this point
Default Re: Dynamically hiding tab bar in UITabBarController?

I think this was a filed bug. I gave up on hiding the tab bar, and our app design has changed since then. It could be fixed in the latest SDK.
bonehead is offline   Reply With Quote
Old 04-24-2009, 10:40 AM   #9 (permalink)
Humbled Student
 
Dutch's Avatar
 
Join Date: Apr 2009
Location: Long Island, NY
Age: 32
Posts: 883
Dutch will become famous soon enough
Send a message via AIM to Dutch
Default

Quote:
Originally Posted by bonehead View Post
I think this was a filed bug. I gave up on hiding the tab bar, and our app design has changed since then. It could be fixed in the latest SDK.
Has anyone gotten this to work?
Dutch is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UITabBarController not showing child view controllers MrA iPhone SDK Development 4 10-22-2008 08:17 AM
Status Bar Not Hiding RegularKid iPhone SDK Development 3 06-24-2008 11:05 PM
Using UITabBarController and NavigationController paos iPhone SDK Development 2 06-18-2008 05:30 PM
How to save files in a build dynamically? satyanarayanagv iPhone SDK Development 0 06-10-2008 02:33 AM


» Advertisements
» Online Users: 327
6 members and 321 guests
Anwerbl, guusleijsten, HowEver, LEARN2MAKE, mottdog, Objective Zero
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,879
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:36 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0