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



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章