0
我有一个视图被显示模态和,在我显示它,我设置它的背景颜色为透明...为什么我的UIView在完成加载后仍然不透明?
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
MyViewController_iPhone *myVC = [[MyViewController_iPhone alloc] initWithNibName:@"MyView" bundle:nil];
[myVC.view setBackgroundColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.0]]
[[self navigationController] presentModalViewController:myVC animated:YES];
[myVC release];
}
作为视图动画向上到屏幕上,背景是透明的,但只要当它向上完成动画时,视图的背景可以追溯到原始的不透明白色,为什么?
在此先感谢您的帮助!