Skip to content
New issue

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

想问一下不可将NSObject加入到classStrings中是基于什么考虑的?谢谢 #49

Open
mushanlianshi opened this issue Feb 1, 2018 · 3 comments

Comments

@mushanlianshi
Copy link

你好,想问一下你那* ⚠️不可将@"NSObject"加入classStrings数组中

  • ⚠️不可将UI前缀的字符串加入classStrings数组中 *
    ⚠️不可将UI前缀的字符串(包括@"UI")加入classStringPrefixs数组中
  • ⚠️不可将NS前缀的字符串(包括@"NS")加入classStringPrefixs数组中
    是基于什么考虑的? 谢谢
@mushanlianshi
Copy link
Author

当方法签名为nil的时候 NSMethodSignature *ms = [self avoidCrashMethodSignatureForSelector:aSelector]; 能直接调ms = [AvoidCrashStubProxy instanceMethodSignatureForSelector:@selector(proxyMethod)];新签名返回吗

@chenfanfang
Copy link
Owner

#40

issues 40 只是讲述了一小部分原因,你可以参考下

@mushanlianshi
Copy link
Author

你好,我看了issues 40的问题 考虑到系统的一些个别UI控件的个别方法会在最后一步进行转发,但是我们调用[self avoidCrashMethodSignatureForSelector:aSelector]系统最后一步方法签名的时候为nil了,我的理解是系统转发最后一步的方法签名也已经是nil了,最后一步消息转发不是必须处理methodSignatureForSelector和forwardInvocation,当methodSignatureForSelector为nil的时候也转发不了,不知道理解的对不对,想请问一下,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants