有一个UINavigationController与rootViewController(作为根)和secondViewController(作为一个孩子)。rootViewController应该能够旋转到任何方向(按预期工作,我只是覆盖shouldAutorotateToInterfaceOrientation),但secondViewController应该只在纵向模式下工作(在这里,我将shouldAutorotateToInterfaceOrientation设置为
interfaceOrientation == UIInterfaceOrientationPortrait
问题:在从rootViewController 导航到 secondViewController而在 Landscape之后,secondViewController不会将其 UI 切换回纵向。有正确的方法吗?