UIView Animation: Shrink

Posted by Moduspwnens on Stack Overflow See other posts from Stack Overflow or by Moduspwnens
Published on 2010-03-21T22:17:45Z Indexed on 2010/03/21 22:21 UTC
Read the original article Hit count: 397

Filed under:
|
|
|
|

I'm looking to have my main view shrink to reveal the next view in the same way the Facebook app's views shrink when you press the top-left button. I already have it working with one of the included animations like this:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO];
[self.navigationController popToRootViewControllerAnimated:YES];
[UIView commitAnimations];

I'm fairly well-experienced with the iPhone SDK but haven't spent a lot of time with UIView animations.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about facebook