Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cocos2d iphone 如何设置默认屏幕方向?_Cocos2d Iphone_Screen Orientation - Fatal编程技术网

Cocos2d iphone 如何设置默认屏幕方向?

Cocos2d iphone 如何设置默认屏幕方向?,cocos2d-iphone,screen-orientation,Cocos2d Iphone,Screen Orientation,然而,我想找到一种方法,保持默认的“允许方向”设置不变,但修改初始方向设置 现在: 初始方向:左横向 允许方向:任何景观 期望的: 初始定位:景观权 允许方向:任何景观 在这篇旧帖子的回答中建议: 如果您支持两种横向方向,但希望 UIInterfaceOrientation和scapeLeft为首字母,然后更改 返回上面的代码 UIInterfaceOrientationIsLandscape(interfaceOrientation)和 info.plist文件,设置UIInterfac

然而,我想找到一种方法,保持默认的“允许方向”设置不变,但修改初始方向设置

现在:

  • 初始方向:左横向
  • 允许方向:任何景观
期望的:

  • 初始定位:景观权
  • 允许方向:任何景观

在这篇旧帖子的回答中建议:

如果您支持两种横向方向,但希望 UIInterfaceOrientation和scapeLeft为首字母,然后更改 返回上面的代码 UIInterfaceOrientationIsLandscape(interfaceOrientation)和 info.plist文件,设置UIInterfaceOrientation(初始接口 方向)UIInterfaceOrientation和ScapeLeft的键

这对我不起作用。相反,我将UISupportedInterfaceOrientations中的方向顺序从“左,右”更改为“右,左”,现在我的游戏从右横向开始,但允许旋转到左横向