We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
是否无法覆盖消息转发的方法?如下几个,主要是为了 处理服务器返回 null 的问题处理,在消息转发阶段防止崩溃。
- (id)forwardingTargetForSelector:(SEL)aSelector; - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector; - (void)forwardInvocation:(NSInvocation *)invocation;
JS 如下,只是模拟。
defineClass("NSNull", { forwardingTargetForSelector: function(aSelector) { return {}; } }, {});
可以覆盖成功,但是 null 发送消息的时候会导致无限循环调用,最后报野指针错误。
感谢!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
是否无法覆盖消息转发的方法?如下几个,主要是为了 处理服务器返回 null 的问题处理,在消息转发阶段防止崩溃。
JS 如下,只是模拟。
可以覆盖成功,但是 null 发送消息的时候会导致无限循环调用,最后报野指针错误。
感谢!
The text was updated successfully, but these errors were encountered: