半透明のビュー ( )をモーダルに表示するUIViewController( と呼ばれる) があります。MainViewControllerHelpOverlayViewController
HelpOverlayViewController *helpOverlayViewController = [[HelpOverlayViewController alloc] init];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
helpOverlayViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentViewController:helpOverlayViewController animated:YES completion:nil];
が表示されているときにユーザーがデバイスを回転させると、回転するだけで、親コントローラーはHelpOverlayViewController回転HelpOverlayViewControllerしません。は半透明で、その下に見えるMainViewControllerため、これは問題です。HelpOverlayViewControllerMainViewController
両方のコントローラーにメソッドがあります
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
どちらも独立してよく回転します。
モーダルビューが回転するときに、下にあるビューコントローラーを強制的に回転させる方法はありますか?