2012-02-25 35 views
0

我正在實現一個名爲fbDidExtendToken的方法: 出於某種原因,我收到警告,我沒有實施這種方法。 這是爲什麼?神祕的協議沒有實現警告

以我的.h:

@interface AppDelegate : UIResponder <UIApplicationDelegate, FBSessionDelegate> 
//... 

在我.mm

@implementation AppDelegate 
//... 
-(void)fbDidExtendToken:(NSString*)accessToken 
{ 

} 

錯誤信息是:

/卷/ mchinen/SCM/FindYourself/FindYourself/AppDelegate中。 mm:13:1: 警告:協議中的方法未實現[-Wprotocol,3] /Volumes/mchinen/scm/FindYourself/src/Facebook.h:123:1:注意:這裏聲明的方法 [3] - (無效)fbDidExtendToken:(的NSString *)的accessToken

回答

0

尋找在協議報頭文件,好像整個方法是

- (void)fbDidExtendToken:(NSString*)accessToken expiresAt:(NSDate*)expiresAt; 

和xcode警告只給了我的方法名稱,直到第一個參數,我複製並粘貼實現,導致警告。