.
you can just
- (void)animationDidContiune:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
UIView *currentObj = context;
[self callTheAnimation: currentObj];
}
You can easily loop the animation.
To finish it - I would create a DidEnded animation and use it instead of the DidContiune animation when you want to stop it (for example, simply if the animation that selects either contiune or end).
HF
AND WHAT IS IMPORTANT:
use this type of animation methods:
- (void)callTheAnimation:(UIView*)itemView
{
[UIView beginAnimations:@"animation" context:itemView];
.
.
.
}
they are quite flexible - you can animate everything here because of the hierarchy of objects.
source
share