UIControl+Blocks.h 341 B

123456789101112131415161718
  1. //
  2. // UIControl+Blocks.h
  3. //
  4. // Created by AvdLee on 05/08/14.
  5. // Copyright (c) 2014 A.Lee. All rights reserved.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <objc/runtime.h>
  9. typedef void (^ActionBlock)(id sender);
  10. @interface UIControl (Blocks)
  11. - (void)addEventHandler:(ActionBlock)handler forControlEvents:(UIControlEvents)controlEvents;
  12. @end