我有一個Start-Menu場景,我希望在Portrait Orientation中顯示。遊戲的其余部分處於標準橫向方向。
我在場景中嘗試了以下方法:
[[CCDirector sharedDirector] setDeviceOrientation:kCCDeviceOrientationPortrait];
和
[[CCDirector sharedDirector] setDeviceOrientation:CCDeviceOrientationPortrait];
我的問題是,如何在運行時切換屏幕方向?
提前致謝! 亞歷克斯