-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to hooking a class method? #157
Comments
id object = object_getClass(obj); |
can not work for me , What am wrong with me? id object = object_getClass([TestObject new]);
//then call method // No log "Class method ------ hook" print |
id class = object_getClass(obj); |
Class settingsMetal = objc_getMetaClass(NSStringFromClass(Settings.class).UTF8String);
Hope this help you ! |
I find some answer like #20 #27, but I found those can not work, do someone have other solution, thanks!
The text was updated successfully, but these errors were encountered: