title: HTML page not fitting inside UIWebView - Need the entire HTML page to be contained inside the UIWebview so that no scrolling should be required
body: <p>I have googled a lot and have found many solutions to my problem.. but none of them seem to work..</p>
  
  <p>I am trying to load a responsive HTML page inside a <code>UIWebView</code>. However, the webpage is not displayed in its entirety. A user has to scroll left and right in order to view the entire content of the page.</p>
  
  <p>I am using the following code:</p>
  
  <pre><code>-(void)webViewDidFinishLoad:(UIWebView *)webView
  {
      [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.querySelector('meta[name=viewport]').setAttribute('content', 'width=%d;', false); ", (int)webView.frame.size.width]];
      webView.scalesPageToFit = YES;
    }
  </code></pre>
  
  <p>However, this fits the page width-wise only. A user still needs to scroll vertically to see the content. How to show the entire content within the space inside the <code>UIWebview</code>??
  Is it possible that there may be a problem with the HTML page that i am loading??</p>