リップルトランジションを使用してカスタムセグエを作成したい.トランジションは機能しますが、リップル効果はありません.ここに私のコードがあります
- (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];
}