Do somthing when animation is ready.

Posted by f0rz on Stack Overflow See other posts from Stack Overflow or by f0rz
Published on 2010-04-07T09:04:32Z Indexed on 2010/04/07 9:13 UTC
Read the original article Hit count: 246

Filed under:
|
|

Hi!

I have a animation in my navigationbased application.

[UIView beginAnimations:nil context:nil];
        [UIView setAnimationDuration:1.5];
        [UIView setAnimationBeginsFromCurrentState:YES];
        [UIView setAnimationTransition:UIViewAnimationTransitionCurlDown 
                                       forView:self.view cache:YES];        
        [UIImageView commitAnimations];

Directly after this bit of code i call

[self.navigationController popViewControllerAnimated:NO];

The thing is, I dont want to pop my ViewController before my animation is ready. Can someone point me to right directions here ?

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about iphone