2

我在 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 一起更改其界面方向。有什么建议么?

提前致谢

4

1 回答 1

0

我意识到如果我只是在 viewController2 上使用 UIModalPresentationFormSheet modalPresentationStyle 会好得多,因为我试图实现的半透明无论如何类似于表单。我的意思是,作为表单呈现的 viewController2 也会旋转呈现的 viewController1,它在背景中仍然可见。

于 2012-08-23T09:42:03.747 回答