You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
If the class has overridden the -[WhateverClass forwardInvocation:] method, then calling the class_addMethod function will lead to fatal error. However, class_replaceMethod will act like class_addMethod if there isn't such -[WhateverClass forwardInvocation:] method, or replace the method as expected if there is one.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
BigBang/BigBang/BigBang.m
Line 86 in 2ca5bcd
If the class has overridden the
-[WhateverClass forwardInvocation:]
method, then calling theclass_addMethod
function will lead to fatal error. However,class_replaceMethod
will act likeclass_addMethod
if there isn't such-[WhateverClass forwardInvocation:]
method, or replace the method as expected if there is one.The text was updated successfully, but these errors were encountered: