Skip to content

Instantly share code, notes, and snippets.

@0x8badf00d
Created February 1, 2012 00:34
Show Gist options
  • Save 0x8badf00d/1714208 to your computer and use it in GitHub Desktop.
Save 0x8badf00d/1714208 to your computer and use it in GitHub Desktop.
Flip Animation
/// Written by Abizern
[UIView transitionWithView:self.view.superview duration:0.35f options:UIViewAnimationOptionTransitionFlipFromRight animations:^{
UIView *containerView = self.view.superview;
AnalogueView *analogueView = timeViewController.analogueView;
[self.view removeFromSuperview];
[containerView addSubview:analogueView];
}completion:NULL];
[UIView transitionWithView:containerView duration:0.35f options:UIViewAnimationOptionTransitionFlipFromLeft animations:^{
UIView *infoView = self.infoViewController.view;
self.infoViewController.timeViewController = self;
[self.analogueView removeFromSuperview];
[containerView addSubview:infoView];
} completion:NULL];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment