UIViewController selective Autorotation with Size classes
问题 The new size classes based Autorotation is a pain if you want custom behavior. Here are my requirements and flow: View Controller 1(VC1) modally presents View Controller 2 (VC2) VC1 only supports landscape, portrait, or both depending on user settings (achieved via supportedInterfaceOrientations ). For this example, we assume it is locked to landscape, VC 2 supports both landscape & portrait I use Size classes and in View Controller 1, I check for statusBarOrientation in viewWillTransition