【发布时间】:2010-08-29 21:52:12
【问题描述】:
有一个 UINavigationController 与 rootViewController(作为 root)和 secondViewController(作为孩子)。 rootViewController 应该能够旋转到任何方向(按预期工作,我只是覆盖了 shouldAutorotateToInterfaceOrientation),但 secondViewController 应该可以工作仅纵向模式(这里,我将 shouldAutorotateToInterfaceOrientation 设置为
interfaceOrientation == UIInterfaceOrientationPortrait
问题:从 rootViewController 在横向 导航到 secondViewController 后, secondViewController 不会将其 UI 切换回纵向。有正确的方法吗?
【问题讨论】:
标签: cocoa-touch uinavigationcontroller orientation autorotate