How to change in the Cocos2d-x project from landscape to portrait both in iOS and Android

iOS:

This is done using XCode project details (select the required

orientation)

Android:

AndroidManifest.xml (android:screenOrientation=portrait)

 

原文地址:https://www.cnblogs.com/davidgu/p/4762464.html