Autorotate view inside UITabBarController and UINavigationController
问题 My main view controller is a UITabBarController , with 4 UINavigationControllers as the tab bar items. Each navigation bar is a couple of different views that get pushed onto it's stack. I have a single view that I want autorotated, but I can't get willAnimateFirstHalfOfRotationToInterfaceOrientation to be called within that view controller. I've tried subclassing my UITabBarController and UINaviationControllers and adding an override for shouldAutorotateToInterfaceOrientation like so: -