Once
Articles25
Tags10
Categories0
Xcode6 使用MJRefresh,Too many arguments to function call, expected 0, have *

Xcode6 使用MJRefresh,Too many arguments to function call, expected 0, have *

Xcode6 使用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 即可

如果编译还是出现错误,修改MJRefreshConst.m,在文件头部添加一下代码即可: #import <CoreGraphics/CoreGraphics.h>

Author:Once
Link:http://once00.github.io/2015/01/20/Xcode6-%E4%BD%BF%E7%94%A8MJRefresh%EF%BC%8CToo-many-arguments-to-function-call-expected-0-have/
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可