2013-04-08 164 views

回答

0

有人建议在这个古老岗位答案:http://www.cocos2d-iphone.org/forum/topic/32650

如果同时支持横向模式,但希望有 UIInterfaceOrientationLandscapeLeft是最初的,然后更改上面的 代码返回 UIInterfaceOrientationIsLandscape(interfaceOrientation )和您的 info.plist文件中,将UIInterfaceOrientation(初始界面 方向)键设置为UIInterfaceOrientationLandscapeLeft。

它没有为我工作。相反,我将UISupportedInterfaceOrientations中的方向顺序从“左,右”改为“右,左”,现在我的游戏开始在右侧,但允许旋转左侧。