ナビゲーションコントローラーを押して横向きでビューを開こうとしていますが、常に縦向きで開きます。
最初のビューは縦向きで、ボタンをクリックすると次のビューは横向きになります。
次のコードを試しています
ビューの呼び出し:
ResultViewController *resultView = [[ResultViewController alloc] init];
[[self navigationController] pushViewController:resultView animated:YES];
横向きで開くビュー:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
ここで他に試すことはありますか?
ありがとう