Skip to content

Instantly share code, notes, and snippets.

@rizumita
Created February 3, 2012 21:36
Show Gist options
  • Save rizumita/1732818 to your computer and use it in GitHub Desktop.
Save rizumita/1732818 to your computer and use it in GitHub Desktop.
Flip Segue
- (void)perform {
UIViewController *sourceViewController = (UIViewController *)self.sourceViewController;
UIViewController *destinationViewController = (UIViewController *)self.destinationViewController;
[UIView transitionWithView:sourceViewController.navigationController.view
duration:0.2
options:UIViewAnimationOptionTransitionFlipFromLeft
animations:^{
[sourceViewController.navigationController pushViewController:destinationViewController animated:NO];
}
completion:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment