Nirav Jain
Nirav Jain

Reputation: 5107

How to apply landscape mode for Game Center View Controller in iOS6

I am working with COCOS2D game. Now i have updated my game to iOS6. I have seen that Apple has changed Game Center login(authentication) process. So for that i have used handler authenticateWithCompletionHandler and nw my game is crashing.

I have also solved this issue via adding method.

- (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window { return UIInterfaceOrientationMaskAllButUpsideDown; }

That fixed my crash. But now issue is Game-Center authentication view comes only in portrait mode. As my whole game is in Landscape mode. i want that authentication view in Landscape.

Does anyone provide me any solution for this issue.

Thanks in advance!!!

Upvotes: 1

Views: 530

Answers (1)

Ben Trengrove
Ben Trengrove

Reputation: 8719

Currently there is no landscape view for the authentication screen in Game Center for iOS6.

Whether this was an oversight by Apple or deliberate we don't know. Many people are expecting a fix to come with the next release but it is just hearsay at the moment.

All you can do is what you have already done. It is possible to only allow portrait for iOS6 small screen devices as a workaround. Any device running iOS5 and iPads don't have to be in portrait and should function correctly.

Upvotes: 2

Related Questions