横向きで表示するには、アプリに1つのビューが必要です。すべてが機能していますが、警告が表示されます。これは、そのビューのビューコントローラーのコードです。
viewDidLoadで
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeLeft];
と、
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
しかし、私は警告を受けます
UIDeviceは-setOrientationに応答しない場合があります。
私のviewDidLoadでは、
それは動作しますが、私はその警告が好きではないので、これを修正する方法を教えてください??
どうもありがとう!!