I am trying to sign in game center usign following code :-
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error)
{
if (error == nil)
{
NSLog(@"Authentication Successful");
}
else
{
NSLog(@"Authentication Failed");
}
}];
:- At first it opens the gamecenter but when user press cancel button and comes again the game center screen is not opening and showing the following error "The requested operation has been canceled or disabled by the user".
Please suggest when this happening and how correct it.