views:

148

answers:

1

I have made a UIImageView, added it to the subview, and plan to animate it. I am using the setAnimationDidStopSelector method and was wondering if I could get it to call a function 3 or so seconds after the animation stops.

Here is the current line of code I am using:

    [UIView setAnimationDidStopSelector:@selector(onAnimationComplete:finished:context:)];
[UIView setAnimationDelegate:self];
[UIView commitAnimations];

Thanks.

+2  A: 

From your animationDidStopSelector method you can call another method using performSelector:withObject:afterDelay:.

gerry3