SWLongPressGestureRecognizer.m 722 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // SWLongPressGestureRecognizer.m
  3. // SWTableViewCell
  4. //
  5. // Created by Matt Bowman on 11/27/13.
  6. // Copyright (c) 2013 Chris Wendel. All rights reserved.
  7. //
  8. #import "SWLongPressGestureRecognizer.h"
  9. @implementation SWLongPressGestureRecognizer
  10. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  11. {
  12. [super touchesBegan:touches withEvent:event];
  13. }
  14. -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
  15. {
  16. [super touchesMoved:touches withEvent:event];
  17. self.state = UIGestureRecognizerStateFailed;
  18. }
  19. -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
  20. {
  21. [super touchesEnded:touches withEvent:event];
  22. self.state = UIGestureRecognizerStateFailed;
  23. }
  24. @end