Tuesday, October 02, 2012

html - Phonegap page has wrong rotation, shows as portrait in landscape mode - Stack Overflow

html - Phonegap page has wrong rotation, shows as portrait in landscape mode - Stack Overflow: "You can check the root Controller - shouldAutorotateToInterfaceOrientation, allow rotation for certain orientation. Hope it helps.

For example return true in Classes/MainViewController.m:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    //return (interfaceOrientation == UIInterfaceOrientationPortrait);
    return true;
}"

'via Blog this'