我使用這個代碼,以使紋波動畫我看來停止CATransition動畫
transition = [CATransition animation];
transition.delegate = self;
transition.duration = 3;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
NSString *types[4] = {@"cube", @"rippleEffect", @"cube", @"alignedCube"};
NSString *subtypes[4] = {kCATransitionFromLeft, kCATransitionFromRight, kCATransitionFromTop, kCATransitionFromRight};
transition.type = types[1];
transition.subtype = subtypes[1];
現在我想用自來水的手段來停止動畫之後,我想從視圖開始,我停止....
我試圖爲
[view.layer removeAllAnimations];
但我發現下面的東西不起作用..任何建議?
感謝您的鏈接:) bt恢復正在工作 – Icoder