iPhone - 翻转视图显示白色背景

los*_*sit 6 iphone

我正在使用翻转动画在我的viewcontroller中的两个视图之间进行动画处理.问题是在动画发生时背景显示白色空白背景.我想展示一个黑色的背景.

我尝试在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
Run Code Online (Sandbox Code Playgroud)

即使在此之后我得到了白色背景

Mar*_*fer 8

我认为您的问题可能是在动画期间显示UIWindow.要解决此问题,请设置主窗口的背景颜色.您可以在代码或IB中执行此操作.