objc_msgSend 早期的调用应该只是加入头文件即可的
#import <objc/message.h>
今天在xcode8的beta版本中调用,返回错误,百思不解。
http://stackoverflow.com/questions/4896510/how-to-import-nsobjcruntime-h-to-use-objc-msgsend
以为是link问题,加入后当然还是未通过的。。因为编译器提示而已,其实并非编译错误。
http://stackoverflow.com/questions/24922913/too-many-arguments-to-function-call-expected-0-have-3
setting 'Enable strict checking of objc_msgSend Calls' to no
问题出现在两年前, 不知道我之前xcode6的时候怎么写的一堆的objc_msgsend函数调用的了。没时间去验证了。权当笔记。
来源:oschina
链接:https://my.oschina.net/u/564737/blog/726507