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
这里将消息决议和消息转发合在一起。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这里将消息决议和消息转发合在一起。
如果 -(id)forwardingTargetForSelector:(SEL)aSelector 返回nil 或者self,就会进入下一步。运行时系统首先会调用 -(NSMethodSignature )methodSignatureForSelector:(SEL)aSelector方法来获得记录了方法的参数和返回值的信息的方法签名。如果methodSignatureForSelector 返回的是nil, 运行时系统会抛出unrecognized selector exception ,程序到这里就结束了否则会继续调用 -(void)forwardInvocation:(NSInvocation)anInvocation 这个方法就十分灵活了,可以更改参数甚至SEL,可以发给任何对象target。
The text was updated successfully, but these errors were encountered: