我在窗口中添加了一个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];
}];
有人能给我一些提示吗?