Hello,I have searched and searched for this but cannot find an answer. I want to create an iPad-only app with Phonegap, and I want it to only launch and run in widescreen format. I've got the HelloWorld app to run, but I can't get it to run in landscape mode at all.In XCode, I have chosen my app to be iPad only, and I have configured the Plist file for the supported interface orientations to be Landscape with left and right home buttons. I do not have any portrait options entered, and I have deselected both portrait and upside down on the Summary tab.Is the code to determine the orientation written somewhere within the Cordova web files? I couldn't find anything there, either. If this is the case, where might I change it and what is the appropriate code to disable portrait completely?As a complete novice, I would appreciate any and all help on this. Thank you.JMF
Yes, I am working on an iOS 6 device. The best way to reach me is via email: iammichaelbower[at]gmail.com. Thanks.
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com
[self.window addSubview:self.viewController.view];
replace it withself.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:[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.webView.frame = CGRectMake ( 0, 20, self.view.frame.size.width, self.view.frame.size.height-20);
-- You received this message because you are subscribed to the Google
Fantastic! Thank you for your help. Just upgraded to Xcode 4.5 and was working with one of my apps when I noticed that the orientation wasn't working. Found out that it is an issue with Xcode, but couldn't find a fix. Your code did the trick. Though the app is still only rotating in three dimensions, that is good enough for me.Sometimes, well most of the time, upgrading Xcode builds, are fraught with land mines.Thanks to you, there is one less thing to worry about.-Rachel--