The string passed to the selector is the one you use in this method call:
[UIView beginAnimations:@"your_animation_name_here" context:NULL]; [UIView setAnimationDuration:0.5]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)];
Subsequently, you can do this:
- (void)animationFinished:(NSString *)animationID finished:(BOOL)finished context:(void *)context { if ([animationID isEqualToString:@"your_animation_name_here"]) {
Adrian kosmaczewski
source share