I used to use this code in order to login users account in game center :
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error)
{
if (error != nil)
{
NSLog(@"LOGIN");
} else {
NSLog(@"CANT LOGIN");
}
}];
this code works fine with iOS 5.x but crashes in iOS 6 , I would be grateful if you help to fix it.
thanks