This has been asked here before the solution has also been given but doesn't work properly
iOS 6 Game Center Crash on Authentication
Check this I am having the same problem. The above code in the link solved it, GameCenter works but now the the cocos2d game rotates that what creates problem for the game. Has anybody solved it or have any solution for this
Also tried this but it doesn't work GameCenter authentication in landscape-only app throws UIApplicationInvalidInterfaceOrientation as i think because i am using cocos2d scene.
Currently i am implementing this code to solve the problem as i have no other choice.
-(NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
{
return UIInterfaceOrientationMaskAllButUpsideDown;
}
The solution i need is simple to open the gamecenter without crashing while locking the code for the orientation to landscape(keep all cocos2d scenes in landscape) Any Help would be Appreciated. Thank you in Advance.