objc_msgSend 早期的调用应该只是加入头文件便可的xcode
#import <objc/message.h>
今天在xcode8的beta版本中调用,返回错误,百思不解。函数
http://stackoverflow.com/questions/4896510/how-to-import-nsobjcruntime-h-to-use-objc-msgsendcode
觉得是link问题,加入后固然仍是未经过的。。由于编译器提示而已,其实并不是编译错误。编译器
http://stackoverflow.com/questions/24922913/too-many-arguments-to-function-call-expected-0-have-3io
setting 'Enable strict checking of objc_msgSend Calls' to no
问题出如今两年前, 不知道我以前xcode6的时候怎么写的一堆的objc_msgsend函数调用的了。没时间去验证了。权当笔记。编译