Iphone 涟漪效应动画
我正在为水族馆开发iPhone应用程序。因此,我使用的涟漪效应代码如下:Iphone 涟漪效应动画,iphone,ios,core-animation,uiviewanimation,Iphone,Ios,Core Animation,Uiviewanimation,我正在为水族馆开发iPhone应用程序。因此,我使用的涟漪效应代码如下: CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:0.6]; [animation setTimingFunction: [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEas
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:0.6];
[animation setTimingFunction: [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
animation.type = @"rippleEffect";
animation.subtype = kCATransitionFromLeft;
animation.fillMode = kCAFillModeBackwards;
animation.startProgress = 0.4;
[animation setRemovedOnCompletion:NO];
[self.view.layer addAnimation:animation forKey:@"rippleEffect"];
[self performSelector:@selector(fn_btnOperation) withObject:nil afterDelay:0.40];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.70];
它工作得很好,但问题是调用此动画后:我的应用程序中的tableview、textview、scrollview无法正常工作。卷轴延迟,不平滑。有人能解决这个问题吗?请注意,转换效果是未记录的。我询问了苹果的工程师们关于使用文档中没有的动画类型的问题。他们说,虽然他们的自动化工具不会检测到这类事情,但它仍然是一个未记录的API,因此,这违反了他们的指导原则,如果你使用它们,你的应用程序可能会被拒绝
由于您使用的是未记录的过渡效果,因此您需要自行确定如何使其正确工作 您永远不会使用[UIView commitAnimations]关闭动画