Cocos2d - Setting Device/Screen Orientation

前端 未结 6 961
情话喂你
情话喂你 2021-01-15 17:31

I am new to the cocos2d API and have noticed that there are a few ways to set the screens orientation within the templates. I have not been able to figure out the correct wa

6条回答
  •  清酒与你
    2021-01-15 18:16

    In the RootViewController.m,search for the line

    return ( UIInterfaceOrientationIsPortrait(interfaceOrientation ));
    

    change it to

    return ( UIInterfaceOrientationIsLandscape(interfaceOrientation ));
    

提交回复
热议问题