box2d ゲームを開発しています。私のゲームの uiinterfaceOrientation は UIInterfaceOrientationLandscapeLeft です。ios5.1 では問題なく動作しますが、ios6.0 では interfaceorientation の問題が発生しています。私は知っています – shouldAutorotateToInterfaceOrientation: iOS 6.0 で非推奨。interfaceOrientation の場合、インターフェイスの向きは、iPad イディオムの場合は UIInterfaceOrientationMaskAll に設定され、iPhone イディオムの場合は UIInterfaceOrientationMaskAllButUpsideDown に設定されます。これ(UIInterfaceOrientationMaskAll)の使い方がわかりません。UIInterfaceOrientationLandscapeLeft のゲームが必要です。この問題を解決する方法を教えてください..ありがとう..
質問する
1021 次
2 に答える
2
必要に応じて、追加する必要があるのは次のとおりです。
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscapeLeft;}
これにより、横向きの左しか実行できないようになります。
于 2012-09-14T14:54:31.673 に答える
0
また、Info.plistにUIInterfaceOrientationLandscapeLeft
inUISupportedInterfaceOrientations
とpropertyを追加する必要があります。コールバックUIInterfaceOrientation
から false を明確に返すことで、それ以上の自動回転を防ぐこともできます。shouldAutorotate
于 2012-09-17T09:45:19.890 に答える