The following method has caused a problem that I cannot fix. My splash screen status bar is landscape (returns to portrait at rootViewController).
To find a solution, I have literally disconnected my whole storyboard from the root view controller, set up a new root view controller by dragging a 'view controller' object from the object library onto the storyboard, and run the App on my phone and simulator, and still the same thing.
Is there a setting in plist that I need to change? I have no idea why this change happened, but I cannot get my app to launch the splash screen with the status bar in portrait mode.
I have tried 'initial view is portrait' property in plist, to no avail.
Please help, i'm having a nightmare. Is this a bug?
Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if (interfaceOrientation == UIInterfaceOrientationLandscapeRight) return YES;
return NO;
}
To find a solution, I have literally disconnected my whole storyboard from the root view controller, set up a new root view controller by dragging a 'view controller' object from the object library onto the storyboard, and run the App on my phone and simulator, and still the same thing.
Is there a setting in plist that I need to change? I have no idea why this change happened, but I cannot get my app to launch the splash screen with the status bar in portrait mode.
I have tried 'initial view is portrait' property in plist, to no avail.
Please help, i'm having a nightmare. Is this a bug?
Last edited by a moderator: