views:

453

answers:

1

Hello, I would like to have a nested animation for my view.

I have one animation stop selector which gets called just fine: [UIView setAnimationDidStopSelector:@selector(growAnimationDidStop1:finished:context:)];

However INSIDE of this selector I want to do more animation and when done yet another selector to be called:

  • (void)growAnimationDidStop1:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context { ... [UIView setAnimationDidStopSelector:@selector(growAnimationDidStop2:finished:context:)]; ...

    [UIView commitAnimations]; }

THe problem is that growAnimationDidStop2 is never called.

why?

thanks

+1  A: 

Oops, answered it myself. I had to start a brand new animation context in the first stop method

leon