Skip to content

Instantly share code, notes, and snippets.

@kaz29
Created June 4, 2012 04:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaz29/2866423 to your computer and use it in GitHub Desktop.
Save kaz29/2866423 to your computer and use it in GitHub Desktop.
StoryBoard sample
//
// MyTestSegue.m
// StoryBoardTest
//
#import "MyTestSegue.h"
@implementation MyTestSegue
- (void)perform
{
UIViewController *src = (UIViewController *) self.sourceViewController;
UIViewController *dst = (UIViewController *) self.destinationViewController;
[UIView transitionWithView:src.navigationController.view duration:0.7
options:UIViewAnimationOptionTransitionFlipFromLeft
animations:^{
[src.navigationController pushViewController:dst animated:NO];
}
completion:NULL];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment