2
我正在開發iPhone應用程序的水族館。在我使用的連鎖反應代碼如下:漣漪效應動畫
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的,滾動視圖在我的應用程序不能正常工作。滾動延遲,並不平穩。誰能解決這個問題嗎?
你永遠不會用[UIView commitAnimations]關閉動畫 – 2013-04-02 09:02:08