私のアプリケーションには、横向きで表示されるはずの署名画面がありますが、iPhone のステータス バーは縦向きモードで表示されます。ステータスバーを縦モードではなく横モードで表示するにはどうすればよいですか? ViewDidLoad で横向きをステータス バーに設定しようとしましたが、うまくいきませんでした。
私はpresentViewControllerを使用して画面をプッシュし、
画面を横向きモードにするコードのスニペットを以下に示します。
// Override to allow orientations other than the default Landscape orientation.
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
- (BOOL) shouldAutorotate {
return YES;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationLandscapeRight;
}
どんな助けでも大歓迎です!
ありがとう、ラメッシュ