消息机制Too many arguments to function call错误

来源:互联网 发布:淳化阁帖 知乎 编辑:程序博客网 时间:2024/06/05 15:39

在学习runtime的消息机制时

使用 objc_msgSend(); 总是报错误  : Too many arguments to function call, expected 0, have 2

这样修改一下设置就可以了

Project -> Build Settings -> 搜索enable strict -> 将Enable Strict Checking of objc_msgSend Calls 设置为No


0 0
原创粉丝点击