Stephane
Stephane

Reputation: 5078

Why hidden TabBar in landscape mode shows a blank area?

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

Upvotes: 0

Views: 1217

Answers (3)

Mart Coul
Mart Coul

Reputation: 490

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

Upvotes: 0

vijay gupta
vijay gupta

Reputation: 242

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];

Upvotes: 1

3lvis
3lvis

Reputation: 4180

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.

Upvotes: 2

Related Questions