搜索
您的当前位置:首页正文

iOS objc_msgSend 报错解决方案

来源:二三娱乐

Swift 中使用MJRefresh时,objc_msgSend(self.beginRefreshingTaget, self.beginRefreshingAction, self);

这句代码提示错误 Too many arguments to function call, expected 0, have 3

解决方案:选中项目 -> Project -> Build Settings -> Preprocessing -> Enable Strict Checking of objc_msgSend Calls  将其设置为 NO 即可

Top