title: WebView height not set based on its content
body: <p>I know this question was posted so many times but still I can not change the height of <code>UIWebView</code> based on its content</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
      self.title=@"webview";
      [_webView setDelegate:self];
  
      NSString * string = @"&lt;h1&gt;This is HTML string&lt;/h1&gt;";
      [_webView loadHTMLString:string baseURL:nil];
  }
  
  - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
  {
      return YES;
  }
  
  
  - (void)webViewDidStartLoad:(UIWebView *)webView
  {
      NSLog(@"start loadinng.......");
  
  }
  
  - (void)webViewDidFinishLoad:(UIWebView *)webView
  {
      NSLog(@"finish loading.......");
  
  
  
      CGRect frame = _webView.frame;
      frame.size.height = 1;
      _webView.frame = frame;
      CGSize fittingSize = [_webView sizeThatFits:CGSizeZero];
      frame.size = fittingSize;
      _webView.frame = frame;
  }
  
  - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
  {
      NSLog(@"Failed to load with error :%@",[error debugDescription]);
  
  }
  </code></pre>
  
  <p>can anybody help me how can resize my <code>UIWebView</code> height?</p>