我正在使用翻转动画在我的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)
即使在此之后我得到了白色背景
| 归档时间: |
|
| 查看次数: |
3456 次 |
| 最近记录: |