如何在UIScrollview中触发UIViewcontroller视图的旋转事件

时间:2011-01-14 09:19:28

标签: iphone uiviewcontroller uiscrollview rotation

我有一个带有UIScrollView视图的UIViewController。 对于此滚动视图的每个页面,我分配了1个UIViewControllers,并在此Scrollview中添加了他的视图。

当我要旋转设备时,子视图控制器中的旋转事件(那些在scrollview中有视图的旋转事件)不会触发......

谁能帮助我吗?谢谢:))

塞尔吉奥

1 个答案:

答案 0 :(得分:1)

在您的主ViewController方法-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

致电

[yourSubViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
相关问题