#pragma mark - UIWebView Delegate Methods
-(void)webViewDidFinishLoad:(UIWebView *)webView
{
CGFloat height = [[webView stringByEvaluatingJavaScriptFromString:@"document.body.offsetHeight"] floatValue];
CGRect frame = webView.frame;
frame.size.height = height;
[webView setFrame:frame];
}
UIWebView 自适应内容大小
最新推荐文章于 2017-07-10 09:33:35 发布