Create a landscape only iPad app with Phonegap - Google Groups: "[self.window addSubview:self.viewController.view];
replace it with
self.window.rootViewController = self.viewController;
At this point orientation is handled correctly, but for one problem: the webview doesn't appear to know the dimensions of the status bar, and tries to display content underneath it. I tried all sorts of things, and finally got this to work, in viewDidLoad: of MainViewController.m:
After
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
add
self.webView.frame = CGRectMake ( 0, 20, self.view.frame.size.width, self.view.frame.size.height-20);
"
'via Blog this'