Created
December 13, 2012 04:31
-
-
Save Koze/4274042 to your computer and use it in GitHub Desktop.
Hook NSClassFromString
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
#import "objc/runtime.h" | |
Class NSClassFromString(NSString *aClassName) { | |
NSLog(@"%@", aClassName); | |
id class = objc_getClass(aClassName.UTF8String); | |
return class; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment