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.
iOS アプリの開発に box2d を使用しています。デバイスの向きを cocos2d のデフォルトである横向き左に修正したいと考えています。
ユーザーがプレイ中に画面の向きを変更できないようにするには、どうすれば画面の向きをロックできますか?
Cocos2D で GameConfig.h を開き、ドキュメントに従って Autorotation マクロを変更して、autorotate サポートを無効にします。
あなたの質問に対する答えは次のとおりです。
システムはiPhoneの回転を無視します
システムの回転を無視するように OS に指示します。