IOS7/IOS8 Allow only portrait in view controller
问题 I am building an app for iPhone that will have only 1 landscape view, and so i want to block landscape for all other, i have tried this: -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } But it stills rotates 回答1: I will suggest to just make your app for portrait mode and then whenever you need the landscape mode then allow landscape mode. First, as previously suggested click on -> Project name -> General -> Deployment Info -> Only select Portrait for