0

I'm hiding tabbar when a particular View shows in landscape. It works fine but shows a white blank space below the view. Any idea how to fix this ?

Thx for helping,

Stephane

Stephane
  • 4,978
  • 9
  • 51
  • 86

3 Answers3

2

Resize your current UIView:

[self.view setBackgroundColor:[UIColor greenColor]]; // Just for checking
[self.view setFrame:CGRectMake(0.0f, 0.0f, 320.0f, 480.0f)];

You should change the height at your convenience.

3lvis
  • 4,190
  • 1
  • 30
  • 35
1

when you are pushing to other view,where you don't need the Tab bar just write it

twitDetObj=[[TwitDetail alloc] initWithNibName:@"TwitDetail" bundle:nil];
[self.navigationController pushViewController:twitDetObj animated:YES];
self.hidesBottomBarWhenPushed=YES;
[twitDetObj release];
vijay gupta
  • 242
  • 1
  • 12
0

This thread resolved the blank space issue after hours of research: hiding TabBar when rotating iPhone device to landscape

Community
  • 1
  • 1
Mart Coul
  • 490
  • 6
  • 15