Search code examples
iosipadwebviewstatusbar

I removed the status bar from my iPad app, but now there is a white bar at the bottom that is the same thickness as the status bar


It seems like the program just moved the whole view up, and didn't stretch the webView to cover the bottom.

How can I make the webView take up the whole space, now that the status bar isn't taking up any? I tried just manually making the webView bigger in the storyboard but it has no effect.


Solution

  • I had the same problem in an iPhone app of mine. Try this:

    - (void)viewDidLayoutSubviews
    {
        self.webView.frame = self.view.bounds;
    }