First of all, every UIViewController in the storyboard must have a class associated with it. Create a new class that inherits from the UIViewController, and then, in the storyboard, click on the uiviewcontroller and at the bottom of this controller, right-click and the class inspector, replace the UIViewController with the name of the new class you created.
Then, make sure that in each class of the view controller that you create, you implement the method
-(BOOL)shouldAutoRotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
Just do this deletion method to return YES to EVERY view controller to make sure all of their views rotate in any orientation. Did you do it?
source
share