2013-04-08 70 views

回答

0

有人建議在這個古老崗位答案:http://www.cocos2d-iphone.org/forum/topic/32650

如果同時支持橫向模式,但希望有 UIInterfaceOrientationLandscapeLeft是最初的,然後更改上面的 代碼返回 UIInterfaceOrientationIsLandscape(interfaceOrientation )和您的 info.plist文件中,將UIInterfaceOrientation(初始界面 方向)鍵設置爲UIInterfaceOrientationLandscapeLeft。

它沒有爲我工作。相反,我將UISupportedInterfaceOrientations中的方向順序從「左,右」改爲「右,左」,現在我的遊戲開始在右側,但允許旋轉左側。