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 don’t want to pop my ViewController before my animation is ready.
Set animations delegate and didStop selector and pop your view controller in that didStop method you specify:
Note, that didStop selector must be of the form specified in docs (see
+ setAnimationDidStopSelectormethod in docs for more details):