xcode6 使用MJRefresh

1. MJRefreshConst.m 里面 会报错: unknown type 'NSString'...

原因:  xcode6 取消.pch文件, 所以没有导入 foundation和uikit框架

解决方法: 在MJRefreshConst.m头部加上

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

 

2.

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 即可

 

posted @ 2014-10-17 09:45  apem  阅读(1169)  评论(0编辑  收藏  举报