Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 kobold2d 构建 cocos2d 游戏,因为我每次构建项目时都升级到 xcode 4.5,设备方向从横向开始,然后自动旋转到纵向模式?我在 xcode 的珍贵版本中,默认方向是横向,但现在它会自行切换。
在 AppDelegate 中更改如下内容的行:
[window addSubView:viewcontroller.view]; to [window setRootViewController:viewcontroller];
应该这样做。