UIWebView高度大小自适应

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

- (void)webViewDidFinishLoad:(UIWebView *)webView     //网页加载完成的时候调用
{  
    CGRect frame = webView.frame;
    CGSize fittingSize = [webView sizeThatFits:CGSizeZero];
    frame.size = fittingSize;
    webView.frame = frame;
}