iphone animation - catch notification
- by satyam
I'm using following lines of code to animate:
CATransition *animation = [self getAnimation:dirString];
[[self view] exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
[[[self view] layer] addAnimation:animation forKey:kAnimationKey];
After end of animation, I want to play sound.
How can I get notification when animation is completed?