Created
August 26, 2011 13:43
-
-
Save pratikshabhisikar/1173427 to your computer and use it in GitHub Desktop.
Card Flip Animation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) show { | |
[UIView beginAnimations:[NSString stringWithFormat:@"%d", _serialNumber] context:nil]; | |
[UIView setAnimationDuration:0.3f]; | |
[UIView setAnimationCurve:UIViewAnimationCurveLinear]; | |
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self cache:YES]; | |
[UIView setAnimationDelegate:self]; | |
[UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:context:)]; | |
[self addSubview:_frontView]; | |
[UIView commitAnimations]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment