cocos2d-x 2.x 支持多个方向屏幕翻转
2017-05-15 17:20 tlnshuju 阅读(422) 评论(0) 编辑 收藏 举报主要改动 RootViewController.mm 的 supportedInterfaceOrientations 方法
1.四个方向
UIInterfaceOrientationMaskAll
2.三个方向(除了屏幕倒着全部都能够旋转)
UIInterfaceOrientationMaskAllButUpsideDown
3.竖屏两个方向
UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
4.横屏两个方向
UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight 或
UIInterfaceOrientationMaskLandscape