こんばんは!縦向きのアプリケーションを開発していますが、アプリの残りの部分を台無しにすることなく、1 つのビューのみの向きをランドスペースに変更する方法があるかどうか迷っていました。
戻してみた
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
//return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
しかし運が悪い... IBではView Controllerの向きが横向きに設定されていますが、アプリを実行すると縦向きモードで表示され続けます...
[[UIApplication sharedApplication]setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft animated:NO];
運悪く…
どんな助けでも大歓迎です。
ありがとうございました。