重複の可能性:
iOS 6 の自動回転の動作がおかしい
IOS 6 に問題があり、ディスプレイが横向きではなく縦向きに表示されます。実際のデバイスとシミュレータ デバイスの両方を使用しています。5.1 シミュレータでゲームをビルドすると、シミュレータ バージョン 6 を使用している場合、またはバージョン 6 の実際のデバイスを使用している場合、ビューは縦向きビューになります。これが私のコードです。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if( interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
interfaceOrientation == UIInterfaceOrientationLandscapeRight )
return YES;
そのような問題を解決する方法はありますか?
ありがとうER