Created
December 28, 2014 08:30
-
-
Save pbrewczynski/c986f102b450a7b8f161 to your computer and use it in GitHub Desktop.
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
UISwipeGestureRecognizer *swipeGestureLeft = [[UISwipeGestureRecognizer alloc] | |
initWithTarget:self action:@selector(handleSwipeGestureLeft:)]; | |
[self.view addGestureRecognizer:swipeGestureLeft]; | |
swipeGestureLeft.direction = UISwipeGestureRecognizerDirectionLeft; | |
[swipeGestureLeft release]; | |
UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] | |
initWithTarget:self action:@selector(handleSwipeGesture:)]; | |
swipeGesture.direction = UISwipeGestureRecognizerDirectionRight; | |
[self.view addGestureRecognizer:swipeGesture]; | |
MyGestureDelegate *deleg = [[MyGestureDelegate alloc] init]; | |
[swipeGesture setDelegate:deleg]; | |
[swipeGesture release]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment