When I rotate the screen in my application using the iPhone, it always remains in the portrait and nothing changes. However, it works great for the iPad. I can rotate it and change the orientation.
How to change the screen orientation of the application on the iPhone when it is turned on?
In config.xml I have:
<preference name="Orientation" value="default" />
The only solution I could find was to change the shouldAutorotateToInterfaceOrientation method in MainViewController.m inside the cordova code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
-- return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
++ return true;
}
But this seems like an ugly solution for me, and I really would like to find a normal way to do this.
iPad iPhone iPhone, portraitUpsideDown, , .
- iPhone ? , .