title: How to resize WebView according to its content?
body: <p>I want to set simple html contents within a web view and then resize it according to its content.</p>
  
  <p>To set simple html contents within web view I used this code and it is working fine:</p>
  
  <pre><code>[[myWebView mainFrame] loadHTMLString:webViewContents baseURL:baseURLFramed];
  </code></pre>
  
  <p>Right now, if content is more than its actual size then it appears in web view showing both vertical and horizontal scroller in it. I want to set some default width and manage height according to its content in a way so that neither horizontal nor vertical scroller appears.</p>
  
  <p>Can anyone suggest me some solution for it?</p>
  
  <p>Thanks,</p>
  
  <p>Miraaj</p>