IDMTapDetectingImageView.h 863 B

123456789101112131415161718192021222324252627
  1. //
  2. // IDMTapDetectingImageView.h
  3. // IDMPhotoBrowser
  4. //
  5. // Created by Michael Waterfall on 04/11/2009.
  6. // Copyright 2009 d3i. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol IDMTapDetectingImageViewDelegate;
  10. @interface IDMTapDetectingImageView : UIImageView {
  11. id <IDMTapDetectingImageViewDelegate> __weak tapDelegate;
  12. }
  13. @property (nonatomic, weak) id <IDMTapDetectingImageViewDelegate> tapDelegate;
  14. - (void)handleSingleTap:(UITouch *)touch;
  15. - (void)handleDoubleTap:(UITouch *)touch;
  16. - (void)handleTripleTap:(UITouch *)touch;
  17. @end
  18. @protocol IDMTapDetectingImageViewDelegate <NSObject>
  19. @optional
  20. - (void)imageView:(UIImageView *)imageView singleTapDetected:(UITouch *)touch;
  21. - (void)imageView:(UIImageView *)imageView doubleTapDetected:(UITouch *)touch;
  22. - (void)imageView:(UIImageView *)imageView tripleTapDetected:(UITouch *)touch;
  23. @end