我正在使用翻转动画在我的视图控制器中的两个视图之间进行动画。问题是背景在动画发生时显示一个白色的空白背景。我想展示一个黑色的背景。iPhone - 翻转视图显示白色背景
我试图在IB和代码中设置主视图的背景颜色为黑色。但背景仍然是白色的。
有人可以帮助我。
谢谢。
添加代码
[self setContentView:[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]];
contentView.backgroundColor = [UIColor blackColor];
[contentView addSubview:toolbar];
[self setView:contentView];
[contentView release];
frontView = [[FrontView alloc] initWithFrame:viewFrame];
[frontView setViewController:self];
[self.view insertSubview:frontView belowSubview:toolbar];
//Initializing the back view here too
//on button click, executing normal flip code
即使在此之后,我得到一个白色背景
谢谢。我无法让它工作。在问题中发布代码 – lostInTransit 2009-07-03 14:04:45