diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m index 62c0f3e1e3..d9f543384b 100644 --- a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m +++ b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m @@ -83,7 +83,7 @@ void WXSwizzleInstanceMethod(Class className, SEL original, SEL replaced) BOOL didAddMethod = class_addMethod(className, original, method_getImplementation(newMethod), method_getTypeEncoding(newMethod)); if (didAddMethod) { - class_replaceMethod(className, replaced, method_getImplementation(newMethod), method_getTypeEncoding(newMethod)); + class_replaceMethod(className, replaced, method_getImplementation(originalMethod), method_getTypeEncoding(originalMethod)); } else { method_exchangeImplementations(originalMethod, newMethod); }