为什么UIView在Unity的动画结束时变得透明?

时间:2013-05-27 07:20:29

标签: objective-c animation unity3d

我在窗口中添加了一个UIView。并从自身大小到全屏幕进行动画演绎。但是在屏幕的最后,它会出现一些透明的飞溅。我可以看到Unity的界面,而不是我的uiview?

我的代码是这样的:

UIView * view = [[UIView alloc] initWithFrame:....]; // a animnation start view rect
CGRect rect = [view convertRect:view.bounds toViewarentView];
UIView * parentView = [[[[UIApplication sharedApplication] keyWindow] subviews]     objectAtIndex:0];
UIView *picv = [[PicView alloc] initWithFrame: parentView.bounds];
picv.frame = rect;
[parentView addSubviewicv];

[UIView animateWithDuration:2.3 animations:^{
picv.frame = parentView.bounds;
} completion:^(BOOL finished) {
[picv setFullImage]; 
}];

有人能给我一些提示吗?

0 个答案:

没有答案