So,
I perform a simple animation with CABasicAnimation (as shown below).
CAAnimationGroup *theGroup = [CAAnimationGroup animation];
theGroup.fillMode = kCAFillModeForwards;
theGroup.removedOnCompletion = NO;
theGroup.delegate = self;
theGroup.timingFunction =[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
theGroup.duration = inDuration;
theGroup.repeatCount = 0;
theGroup.animations = [NSArray arrayWithObjects:rotationZ, theAnimationX, theAnimationY, nil]; // you can add more
[inLayer addAnimation:theGroup forKey:@"animateLayer"];
NSLog (@"ABCD");
// This gets called before end of animation
Is there any method like -(BOOL) isAnimationCompleted; so that I could know when animation is completed ?
I want to run a method right after animation has come to a complete end . Any ideas ?
Implement the method
which you can see the doc from here.