Reputation: 417
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.
Upvotes: 1
Views: 669
Reputation: 21460
From your animationDidStopSelector
method you can call another method using performSelector:withObject:afterDelay:.
Upvotes: 3