Dans didFinishLaunchingWithOptions Je suis en train d'authentifier le lecteur avec ce codeiOS GameCenter intégration Erreur
// Authenticate Player with Game Center
GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
// Handle the call back from Game Center Authentication
[localPlayer localPlayer.authenticateHandler:^(NSError *error)
{
if (localPlayer.isAuthenticated)
{
// Player was successfully authenticated.
// Perform additional tasks for the authenticated player.
}
else if (error != nil)
{
NSLog(@"error : %@", [error description]);
}
}];
return YES;
}
Mais je reçois l'erreur sur cette ligne [localPlayer localPlayer.authenticateHandler:^(NSError *error)
disant manque un support carré « ] » et est pointant à l'arrêt complet '.' Je ne peux pas obtenir ce travail Merci