Created
October 28, 2016 10:35
-
-
Save Li-blog/cec15c1e6566b2170014f4a6688801be to your computer and use it in GitHub Desktop.
This file contains 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
Class gCtl = NSClassFromString(@"GameController"); | |
Method getMD5ByGameContent = class_getClassMethod(gCtl, @selector(getMD5ByGameContent:)); | |
Method getMD5ByGameContent_hooked = class_getClassMethod(self, @selector(getMD5ByGameContent_hooked:)); | |
... | |
Class metaClass = objc_getMetaClass(class_getName(gCtl)); | |
class_replaceMethod(metaClass, ... | |
class_replaceMethod(metaClass, ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment