xcode6/7 使用MJRefresh,报错:Too many arguments to function call, expected 0, have......

将XCode升级到6后,报Too many arguments to function call, expected 0, have *,在XCode5.1里能编译通过的,到xcode6就报错

objc_msgSend(self.beginRefreshingTaget, self.beginRefreshingAction, self);

Too many arguments to function call, expected 0, have *

解决方案:

选中项目 - Project - Build Settings - ENABLE_STRICT_OBJC_MSGSEND 将其设置为 NO 即可

posted @ 2016-01-05 15:35  luqinbin  阅读(226)  评论(0编辑  收藏  举报