我在 iPad 上有一个 ViewController1,它使用 presentModalViewCotroller 呈现另一个 ViewController2 模式。
UIViewController* viewController2 = [[VideosViewController alloc] init];
viewController2.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentModalViewController:viewController2 animated:YES];
[viewController2 release];
但是 ViewController2 的某些部分是半透明的。因此,当 ViewController 2 已经出现在屏幕上时,如果我将设备旋转 90 度,ViewController2 的界面方向会相应改变,但在背景中仍然可见的 Viewcontroller1 的方向不会改变。我希望 ViewController1 与 ViewController2 一起更改其界面方向。有什么建议么?
提前致谢