diff --git a/YYKit/Utility/YYWeakProxy.m b/YYKit/Utility/YYWeakProxy.m index fbf648df..548728da 100644 --- a/YYKit/Utility/YYWeakProxy.m +++ b/YYKit/Utility/YYWeakProxy.m @@ -28,12 +28,11 @@ - (id)forwardingTargetForSelector:(SEL)selector { } - (void)forwardInvocation:(NSInvocation *)invocation { - void *null = NULL; - [invocation setReturnValue:&null]; + [invocation invokeWithTarget:_target]; } - (NSMethodSignature *)methodSignatureForSelector:(SEL)selector { - return [NSObject instanceMethodSignatureForSelector:@selector(init)]; + return [_target methodSignatureForSelector:selector]; } - (BOOL)respondsToSelector:(SEL)aSelector {