我正在制作一个cocos2d游戏并在其中实现Game Center。我的游戏中心无法使用横向模式

时间:2012-09-06 09:31:05

标签: cocos2d-iphone game-center uiinterfaceorientation

我想将我的游戏中心默认更改为横向模式,但没有成功。我尝试了一些课程但没有结果...

#import "GKMatchmakerViewController-LandscapeOnly.h"

@implementation GKMatchmakerViewController (LandscapeOnly)

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
}

@end

此课程也适用于我的游戏。

如果你有一些解决方案,请帮助我。

1 个答案:

答案 0 :(得分:-1)

嘿,这个东西在模拟器中不起作用,但它适用于我的设备......

解决了问题......