1).you can access your gameCenterAuthenticationComplete in delegate by importing its class header and declaring an instance of that class in delegate's interface(Appdelegate.h) and accessing gameCenterAuthenticationComplete through that instance in Appdelegate.m OR you can access it by sharedinstance of class do the following in your class Yourclass.h file
+(YourClass*) sharedInstance;
and in YourClass.m
static YourClass* instance;
+(YourClass*) sharedInstance
{
@synchronized(self)
{
if (instance == nil)
{
instance = [[YourClass alloc] init];
}
}
return instance;
}
2)this method get called on cancel button of gamecenterleaderboardviewcontroller
- (void)leaderboardViewControllerDidFinish:(GKLeaderboardViewController *)view_controller
{
[self.gameCenter dismissModalViewControllerAnimated:NO];
[view_controller release];
}