cocos2d でゲームを開発しましたが、すべてのゲーム画面はランドスケープ モードです。Game Center を実装しようとしていますが、認証時にクラッシュします。同様のタイプの問題の回答が見つかりませんでした。正しいアプローチを提案してください...
クラッシュの問題:-「UIApplicationInvalidInterfaceOrientation」、理由:「サポートされている方向にはアプリケーションと共通の方向がなく、shouldAutorotate は YES を返しています」
以下の解決策を試しましたが、ゲームの向きも乱れ、ゲームはポートレートモードでも動作します。これは望ましくありません:-
(NSUInteger)アプリケーション:(UIApplication*)アプリケーション
supportedInterfaceOrientationsForWindow: (UIWindow*)window { return UIInterfaceOrientationMaskAllButUpsideDown; }