如果我在 iPad 上构建应用程序,它似乎处于纵向模式,并且设备方向的更改不会影响它。我知道现在还很早,但这非常重要,因为我必须尽快完成该应用程序。有人知道解决这个问题吗?
最佳答案
好的,我在 cocos2d forums 中遇到了一个修复程序
只需进入您的应用程序委托(delegate)并更改这行代码:
// set the Navigation Controller as the root view controller
[window addSubview:viewController.view];
对此:
// set the Navigation Controller as the root view controller
[window setRootViewController: viewController];
关于iphone - cocos2d 和 XCode 4.5 : App suddenly in portrait orientation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12508570/