Rumah >hujung hadapan web >html tutorial >webView加载HTML字符串计算动态高度_html/css_WEB-ITnose
- (void)webViewDidFinishLoad:(UIWebView *)webView { //webview 自适应高度 CGRect frame = webView.frame; CGSize fittingSize = [webView sizeThatFits:CGSizeZero]; frame.size = fittingSize; webView.frame = frame; //tableView reloadData}