-
-
Save gliubc/658a0b66909564497f236d99531dd2cc to your computer and use it in GitHub Desktop.
UITapGestureRecognizer
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
UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleMenuTap:)]; | |
[menu addGestureRecognizer:recognizer]; | |
- (void)handleMenuTap:(UITapGestureRecognizer *)recognizer { | |
[self selectTabAtIndex:recognizer.view.tag]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment