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