Created
July 25, 2017 20:55
-
-
Save olbrichj/799fe458fb9fd9033c6f444b1b34684d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (void)load { | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
NSError *error; | |
BOOL result = [[self class] jr_swizzleMethod:@selector(text) withMethod:@selector(swizzleName) error:&error]; | |
if (!result || error) { | |
NSLog(@"Can't swizzle methods - %@", [error description]); | |
} | |
}); | |
} | |
- (NSString *)swizzleName { | |
return @"StubName"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment