Created
November 20, 2012 22:45
-
-
Save romyilano/4121787 to your computer and use it in GitHub Desktop.
Swipe Gesture - iOS
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
-(void)viewDidLoad | |
{ | |
// gesture recognize | |
UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeGesture:)]; | |
swipeGesture.direction = UISwipeGestureRecognizerDirectionLeft; | |
[self.view addGestureRecognizer:swipeGesture]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment