1

我在窗口中添加了一个 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]; 
}];

有人可以给我一些提示吗?

4

0 回答 0