Guest User

Untitled

a guest
Feb 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //
  2. // BlockBasedSelector.h
  3. //
  4. // Created by Charlton Provatas on 11/2/17.
  5. // Copyright © 2017 CharltonProvatas. All rights reserved.
  6. //
  7.  
  8. #import <Foundation/Foundation.h>
  9.  
  10. @interface BlockBasedSelector : NSObject
  11.  
  12. @end
  13.  
  14. typedef void (^OBJCBlock)(id PPSelector);
  15. typedef void (^OBJCBlockWithSender)(id PPSelector, id sender);
  16.  
  17. void class_addMethodWithBlock(Class class, SEL newSelector, OBJCBlock block);
  18. void class_addMethodWithBlockAndSender(Class class, SEL newSelector, OBJCBlockWithSender block);
Add Comment
Please, Sign In to add comment