为什么在横向模式下隐藏TabBar会显示空白区域?

时间:2011-11-05 13:49:02

标签: iphone objective-c ios uitabbarcontroller uitabbar

当特定视图在横向中显示时,我隐藏了tabbar。它工作正常,但在视图下方显示一个白色空白区域。知道如何解决这个问题吗?

求助,

的Stephane

3 个答案:

答案 0 :(得分:2)

调整当前的UIView:

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

您应该在方便时更改身高。

答案 1 :(得分:1)

当您推送到其他视图时,您不需要Tab栏就可以写它

twitDetObj=[[TwitDetail alloc] initWithNibName:@"TwitDetail" bundle:nil];
[self.navigationController pushViewController:twitDetObj animated:YES];
self.hidesBottomBarWhenPushed=YES;
[twitDetObj release];

答案 2 :(得分:0)

此线程在经过数小时研究后解决了空白问题:hiding TabBar when rotating iPhone device to landscape