我在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一起改变它的接口方向。有什么建议吗?
提前感谢
发布于 2012-08-23 17:42:04
我意识到,如果我简单地使用viewController2上的UIModalPresentationFormSheet modalPresentationStyle会更好,因为我试图实现的半透明效果无论如何都类似于表单。我的意思是,以表单形式呈现的viewController2也会旋转呈现的viewController1,它在背景中仍然可见。
https://stackoverflow.com/questions/7399930
复制相似问题