Last active
August 29, 2015 14:22
-
-
Save BradB132/b8f5b1924aae262ca31a to your computer and use it in GitHub Desktop.
ViewControllerTransitionsPart3-5
This file contains 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
@interface TTPushController () | |
@property (nonatomic, strong) TTInteractivePinchTransition* transition; | |
@property (nonatomic, strong) UIPinchGestureRecognizer* pinch; | |
@end | |
// ... | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
self.transition = [[TTInteractivePinchTransition alloc] init]; | |
_transition.delegate = self; | |
_transition.sensitivity = 0.5f; | |
_transition.pinchFilter = PinchFilter_RecognizeOpenOnly; | |
self.pinch = [[UIPinchGestureRecognizer alloc] initWithTarget:_transition action:@selector(handlePinch:)]; | |
[self.view addGestureRecognizer:_pinch]; | |
} | |
#pragma mark - TTInteractivePinchTransitionDelegate | |
-(void)delegateShouldPerformSegue:(TTInteractivePinchTransition*)transition | |
pinch:(UIPinchGestureRecognizer*)pinch | |
{ | |
[self performSegueWithIdentifier:@"push" sender:pinch]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment