title: How to display UIWebView with correct zoom scale in landscape
body: <p>I create UIWebView and set autorotate like this:</p>
  
  <pre><code>- (void)loadView
  {
      self.view = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)] autorelease];
  
      UIWebView *webview = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
      webview.delegate = self;
      webview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_darkgreen_320x312.png"]];
      webview.dataDetectorTypes = UIDataDetectorTypeLink;
      webview.multipleTouchEnabled = YES;
      webview.scalesPageToFit = YES;
      webview.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
      [webview loadHTMLString:@"&lt;meta name=\"viewport\" content=\"width=320\"&gt;content ..." baseURL:nil];
      [self.view addSubview:webview];
  
  }
  
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
  {
      return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
  }
  </code></pre>
  
  <p>It works perfectly when I rotate it in landscape without zooming. It will display full screen on both rotation.</p>
  
  <p>The problem is if I zoom-out or a little bit zoom-in in portrait mode and then rotate it in landscape, webview still zoom with the same size of portrait mode and it has black space like in picture > <a href="http://cl.ly/1o3c4712053C3T2C2H2z" rel="nofollow">http://cl.ly/1o3c4712053C3T2C2H2z</a></p>
  
  <p>It's width in landscape is correct, 480px (you can see its scrollbar is on most right of screen). I don't understand why webview don't display full screen.</p>
  
  <p>What I do wrong?
  Is there any way to fix this?
  Please help.</p>
  
  <p>Thanks in advance.</p>