Created
June 4, 2012 04:47
-
-
Save kaz29/2866423 to your computer and use it in GitHub Desktop.
StoryBoard sample
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
// | |
// 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