0

Currently i am working in simple iphone application, Using tabbar to set five buttons then i select 3rd tab at the time tabbar is hidden, then i show the tool bar functionality in tabbar area, but the toolbar not shown, Is it possible to show toolbar when the tabbar is hidden time? please help me

Thanks in Advance

I tried this:

[self.tabbarController.tabbar setHidden:YES];
Mick MacCallum
  • 129,200
  • 40
  • 280
  • 281
SampathKumar
  • 2,525
  • 8
  • 47
  • 82
  • see this post http://stackoverflow.com/questions/1982172/iphone-is-it-possible-to-hide-the-tabbar – rakeshNS Aug 17 '12 at 16:44
  • Hi honey, try this one http://stackoverflow.com/questions/3544701/show-tab-bar-after-its-hidden by @imaginaryboy – rakeshNS Aug 17 '12 at 17:00

3 Answers3

0

Yes, just set the hidden property of the toolbar to NO after [self.tabBarController.tabBar setHidden:YES];

Brad The App Guy
  • 16,255
  • 2
  • 41
  • 60
Ravi
  • 7,929
  • 6
  • 38
  • 48
0

You cannot disable the tabbar for some pages but not others. What you could do is draw a toolbar over the tabbar.

AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
UIToolbar * tb = [[UIToolbar alloc] init];
tb.frame = CGRectMake(0, delegate.window.frame.size.height-44, 320, 44);
[delegate.window addSubview:tb];
Daniel Gorelik
  • 279
  • 1
  • 2
  • 10
0

First you need to create a tab bar in appdelegate.m file then only you can hide the toolbar. or you can create a tool bar seperatly by this code

UIToolbar *toolbar = [[UIToolbar alloc] init];
toolbar.frame = CGRectMake(0, 418, 320, 44);

[self.view addSubview:toolbar];
[toolbar release];
reddy
  • 13
  • 10