Skip to content

Commit

Permalink
Allow swiping to progress to the next coachmark
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeers committed Mar 25, 2015
1 parent aef32ec commit a2b5147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Coach Marks/DDCoachMarksView.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ - (void)setup {

// Capture touches
UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(userDidTap:)];
UISwipeGestureRecognizer *swipeGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:nil];
UISwipeGestureRecognizer *swipeGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(userDidTap:)];
swipeGestureRecognizer.direction = UISwipeGestureRecognizerDirectionLeft | UISwipeGestureRecognizerDirectionRight;
[self addGestureRecognizer:swipeGestureRecognizer];
[self addGestureRecognizer:tapGestureRecognizer];

Expand Down

0 comments on commit a2b5147

Please sign in to comment.