UIView+BlockGesture.h 522 B

1234567891011121314151617181920212223
  1. //
  2. // UIView+UIView_BlockGesture.h
  3. // Created by MacKun on 15/4/25.
  4. // Copyright (c) 2015年 MacKun All rights reserved.
  5. //
  6. #import <UIKit/UIKit.h>
  7. typedef void (^GestureActionBlock)(UIGestureRecognizer *gestureRecoginzer);
  8. @interface UIView (BlockGesture)
  9. /**
  10. * @brief 添加tap手势
  11. *
  12. * @param block 代码块
  13. */
  14. - (void)addTapActionWithBlock:(GestureActionBlock)block;
  15. /**
  16. * @brief 添加长按手势
  17. *
  18. * @param block 代码块
  19. */
  20. - (void)addLongPressActionWithBlock:(GestureActionBlock)block;
  21. @end