Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 707 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 707 Bytes

TouchDownGestureRecognizer

TouchDownGestureRecognizer simple implementation

Usage

  1. Import TouchDownGestureRecognizer.h into your ViewController .mfile
  2. Get instance through [[TouchDownGestureRecognizer alloc] initWithTarget: action:]method
  3. Add instance gesture recognizer to your view

Example

- (void)viewDidLoad {
  [super viewDidLoad];
  TouchDownGestureRecognizer *touchDown = [[TouchDownGestureRecognizer alloc] initWithTarget:self action:@selector(handleTouchDown:)];
  [self.view addGestureRecognizer:touchDown];
}
-(void)handleTouchDown:(UIGestureRecognizer *)gesture {
  NSLog(@"Down");
}