【发布时间】:2013-12-24 05:17:24
【问题描述】:
我必须在UIWebView 上渲染 PDF 文件,但我无法计算PDF 的实际高度,因为我使用的是UITableView,所以我需要设置具有 UIWebView 的单元格高度。
我可以使用以下代码计算 HTML 内容。
CGRect frame = newsWebView.frame;
frame.size.height = 1;
frame.size.height = newsWebView.scrollView.contentSize.height; // Get the corresponding height from the webView's embedded scrollView.
webViewHeight =frame.size.height ;
有什么方法可以计算PDF内容高度吗??
【问题讨论】:
标签: ios iphone objective-c