title: UiWebview in IPhone resize as per the content size
body: <p><img src="https://i.stack.imgur.com/a9wfv.png" alt="enter image description here">I am having an issue like i am using UIWebView in Iphone and data coming as HTML am storing the html data as astring and passing to the UIWebView am getting it in good but <strong>i want to Change the UIWebView Size as per the content size</strong> </p>
  
  <pre><code>    - (void)viewDidLoad {
          web.delegate = self; 
          NSString * str = [dict objectForKey:@"terms"];
          [web loadHTMLString:str baseURL:nil];
      }
  - (void)webViewDidStartLoad:(UIWebView *)webView
  {
          CGRect frame = web.frame;
          frame.size.height = 1;
  
          CGSize fittingSize = [web sizeThatFits:CGSizeZero];
          frame.size = fittingSize;
          web.frame = frame;
  
          NSLog(@"size: %f, %f", fittingSize.width, fittingSize.height);
  
       web.frame = CGRectMake(10, 100, web.scrollView.contentSize.width, web.scrollView.contentSize.height);
  
  }
  </code></pre>