Skip to content

Instantly share code, notes, and snippets.

@pratikshabhisikar
Created August 26, 2011 13:43
Show Gist options
  • Save pratikshabhisikar/1173427 to your computer and use it in GitHub Desktop.
Save pratikshabhisikar/1173427 to your computer and use it in GitHub Desktop.
Card Flip Animation
-(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