3 Oct 2012 sness   » (Journeyer)

Create a landscape only iPad app with Phonegap - Google Groups

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:

    [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);


'via Blog this'

Syndicated 2012-10-03 19:32:00 from sness

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!