In the project summary, “Supported interface orientations” is selected, since my application has a photo gallery view that can be rotated using the device. Other views are just a portrait. The target devices are the iPhone, and everything works well on the iPhone. But when it works in my iPad with landscape mode, the splash and rootView look like this:
Splash landscape:

rootview landscape:

What I expected should look the same as the iPad with portrait mode:
Splash portrait:

rootview portrait:

The root element MyNavigationController, some related code is as follows:
MyNavigationController.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
- (BOOL)shouldAutorotate {
return NO;
}
source
share