Skip to content

Commit

Permalink
Add demo support for double tap and two finger tap
Browse files Browse the repository at this point in the history
  • Loading branch information
gcamp committed May 10, 2011
1 parent 7268787 commit ba488b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions JMWhenTappedDemo/JMWhenTappedDemo/DemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ - (void) loadView {
[a show];
[a release];
}];

[_view1 whenDoubleTapped:^{
UIAlertView *a = [[UIAlertView alloc] initWithTitle:@"Double tapped!" message:@"You double tapped view1! Congratulations!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[a show];
[a release];
}];

[_view1 whenTwoFingerTapped:^{
UIAlertView *a = [[UIAlertView alloc] initWithTitle:@"Two finger tapped!" message:@"You two finger tapped view1! Congratulations!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[a show];
[a release];
}];

[_view1 release];

Expand Down

0 comments on commit ba488b2

Please sign in to comment.