Go to you summary tab, scroll down the to go "iPad Deployment Info". Unselect all the four options in "Supported Interface Orientations". Then select again, but select Portrait first and remaining after.
Also in View that you are expecting to be in portrait mode, just add
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation
{
return (orientation == UIInterfaceOrientationMaskAll);
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationPortrait;
}
Hope this helps.