uiview animation used to work on iphone sdk 2.2 and now it doesn't on sdk 3.0

Posted by nico on Stack Overflow See other posts from Stack Overflow or by nico
Published on 2009-06-30T03:04:33Z Indexed on 2010/04/10 17:03 UTC
Read the original article Hit count: 881

hello! I have an animation block that worked fine when runnung the app on iphone OS 2.2. Now I compile the same code for iphone OS 3.0 and it doesn't work.

UIViewAnimationTransition  trans = UIViewAnimationTransitionFlipFromLeft;

[UIView beginAnimations: nil context: NULL];
UIView *forview = [[self view] superview];
[UIView setAnimationTransition: trans forView:forview  cache: YES];
[UIView setAnimationDuration:1.0];

[[self navigationController] popViewControllerAnimated:NO]; 

[UIView commitAnimations];

What the code does, it uses the navigation controller to change the top most view, but with the flip transition and not with the built in one.

any ideas on what might have change in the sdk or what I'm doing wrong?

thanks!!

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0

Related posts about animation