Last active
December 14, 2015 19:39
-
-
Save C4Code/5138312 to your computer and use it in GitHub Desktop.
Overriding -(void)pressedLong:(id)sender;
This file contains hidden or 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
// | |
// C4WorkSpace.m | |
// | |
// Created by Travis Kirton | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace | |
-(void)setup { | |
[self addGesture:LONGPRESS name:@"press" action:@"pressedLong"]; | |
} | |
-(void)pressedLong:(UIGestureRecognizer *)sender { | |
if(sender.state == UIGestureRecognizerStateBegan) C4Log(@"started the long press"); | |
else if(sender.state == UIGestureRecognizerStateChanged) C4Log(@"the long press changed"); | |
else if(sender.state == UIGestureRecognizerStateEnded) C4Log(@"ended the long press"); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment