我在这里转了个圈。我已经为所有的视图控制器设置了shouldAutoRotateToInterfaceOrientation。我的应用程序在景观环境中运行正常,如下所示:alt text http://img517.imageshack.us/img517/3749/screenshot20100701at802.png
但是,当我使用[window addSubview:whatever.view];添加一个新的子视图时,它显示如下所示:alt text http://img291.imageshack.us/img291/3749/screenshot20100701at802.png
如何在横向自动添加新的子视图?
谢谢!
发布于 2010-07-01 20:14:20
window可能不是由实现shouldAutoRotateToInterfaceOrientation的某个视图控制器管理的。
将视图添加到实现自动旋转的视图控制器之一。
https://stackoverflow.com/questions/3157566
复制相似问题