0

リップルトランジションを使用してカスタムセグエを作成したい.トランジションは機能しますが、リップル効果はありません.ここに私のコードがあります

    - (void)perform
{
    // Add your own animation code here.

    CATransition *animation = [CATransition animation];
    animation.delegate = self;
    animation.duration = 0.7;
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    animation.type = @"rippleEffect";

    [[[[self sourceViewController] view] layer] addAnimation:animation forKey:@"animation"];

    [[self sourceViewController] presentModalViewController:[self destinationViewController] animated:NO];


}
4

2 に答える 2

1

rippleEffectは文書化されていないアニメーション タイプであり、ここで説明されているように、特定の iOS リリース間で同じように (またはまったく) 動作することに依存することはできません:波及効果アニメーション. アニメーションを自分で実装するか、別の方法を見つけることを強くお勧めします。

于 2013-04-24T01:43:52.737 に答える