マスタービューコントローラと詳細ビューコントローラを使用して、UINavigationControllerを作成したいとします。方向が異なるUINavigationコントローラ
Master View ControllerはPortraitとLandscapeRightで回転できますが、Detail View ControllerはLandscapeRightでのみ見ることができます(詳細にはムービーが表示されます)。
これを設定するにはどうすればよいですか?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationLandscapeRight;
}
をして、詳細ビューコントローラトリックを行う必要があります
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return interfaceOrientation == UIInterfaceOrientationLandscapeRight;
}
上:
に許容されるのViewControllerを伝えることができます。 – cannyboy