Skip to content

Instantly share code, notes, and snippets.

@romyilano
Created November 20, 2012 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romyilano/4121787 to your computer and use it in GitHub Desktop.
Save romyilano/4121787 to your computer and use it in GitHub Desktop.
Swipe Gesture - iOS
-(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