objc_msgSend Too many arguments to function call

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函數調用的了。沒時間去驗證了。權當筆記。編譯

相關文章
相關標籤/搜索