Objective C iOS 9 lock viewController portrait orientation
问题 After upgrade my project do iOS 9.2 my old code become obsolete -(UIInterfaceOrientationMask)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{ return UIInterfaceOrientationPortrait; } And I found this ugly solution, after receive a rotation notification view set rotation (And repaint with animation my view controller): -(void)didRotate: