2012-02-25 33 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警告只给了我的方法名称,直到第一个参数,我复制并粘贴实现,导致警告。