title: How to change the UIWebView height Programatically in Swift iOS (Xcode 6.0)
body: <p>i'm in trouble. i'm currently using a uiwebview to display content. but i want to show content without scrolling in uiwebview. </p>
  
  <p>Below the code. look it</p>
  
  <pre><code>func webViewDidFinishLoad(webView: UIWebView!) {
  
      var newBounds: CGRect = webView.bounds
      newBounds.size.height = webView.scrollView.contentSize.height
      webView.bounds = newBounds
  
  }
  </code></pre>
  
  <p>but it won't be change its size. Anyone know what should i do ?</p>
  
  <p>Thanks in advance.</p>