僕が行なっている縦画面対応は以下の通りです。
■環境
cocos2d-x 2.0.4
RootViewController.mmを編集します。

// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// 縦の場合
return UIInterfaceOrientationIsPortrait( interfaceOrientation );
}
// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
// 縦の場合
return UIInterfaceOrientationMaskPortrait;
#endif
}
この2箇所を編集すれば、縦画面になります。
簡単やね(∩´∀`)∩
これで縦画面のゲームも思いのまま!
スポンサーサイト