Skip to content

Instantly share code, notes, and snippets.

View mhupman's full-sized avatar

Matthew Hupman mhupman

  • Yext
  • United States
View GitHub Profile
@mhupman
mhupman / gist:5187317
Last active December 15, 2015 02:29
NSObject+JRSwizzleBlock.[h,m]
/* NSObject+JRSwizzleBlock.h */
#import <Foundation/Foundation.h>
@interface NSObject(JRSwizzleBlock)
+ (void)swizzle:(SEL)origmethod toMethod:(SEL)newmethod forBlock:(void(^)(void))swizzledBlock;
@end