MJRefresh objc_msgSend 报错解决方案

来源:互联网 发布:淘宝兴业银行进不去 编辑:程序博客网 时间:2024/04/30 08:00

// 编译MJRefresh报错 崩溃在这个地方:

            if ([self.beginRefreshingTaget respondsToSelector:self.beginRefreshingAction]) {

                objc_msgSend(self.beginRefreshingTagetself.beginRefreshingActionself);

            }


最近几天一直在给iOS端的开发工作,也是用了一些第三方开发的类库,也碰到了各种问题,这不昨天又报错了

总体是我objc_msgSend 这个方法出现错误

错误代码:

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

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

经过几番周折,终于叨叨解决方案

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


直接上图说明

iOS objc_msgSend 报错解决方案

0 0