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

关于返回值问题 #827

Open
hatjs880328s opened this issue Jun 11, 2018 · 1 comment
Open

关于返回值问题 #827

hatjs880328s opened this issue Jun 11, 2018 · 1 comment

Comments

@hatjs880328s
Copy link

hatjs880328s commented Jun 11, 2018

bang你好,
查看你的代码发现使用了performSelector这个函数。
请问对于那种返回基本数据类型如:INT的是如何处理的呢?
因为我在使用swift时,当方法返回值为 int时,
使用method signature 判断出它的类型是 'q'-> long long
请问你遇到过这个问题吗?

@hatjs880328s
Copy link
Author

https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100-SW1
这篇文当我对照了一下,double是正确的nsobj也是正确的,就INT会返回给q

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

1 participant