I am working on game which is using Game Center and I get next warning;
... \'authenticateWithCompletionHandler:\' is deprecated: first deprecated in iOS 6.0
Yes, you have to manually present the login form with iOS6, this gives you more control over when to present the screen. Give this a try
localPlayer.authenticateHandler = ^(UIViewController *viewController,NSError *error) {
if (localPlayer.authenticated) {
//already authenticated
} else if(viewController) {
[self presentViewController:viewController];//present the login form
} else {
//problem with authentication,probably bc the user doesn't use Game Center
}
};