The following lines of your code look great:
CATransition *animation=[CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.75]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; [animation setType:@"rippleEffect"]; [view.layer addAnimation:animation forKey:nil];
But the problem is that you apply the animation before adding the view to your supervisor. which obviously won't work!
Try to add a preview, then apply the animation. I also expect this to not work.
if you add this view to your supervisor in the viewDidLoad method. apply the animation in the ViewDidAppear or ViewWillAppear methods.
Otherwise, create a separate method that applies the animation. and call it after adding the subset by calling the performSelector:withObject:afterDelay .
source share