Ram*_*ddy 1 uiwebview ios
我需要根据内容高度调整Web视图框的大小.所以我需要计算内容的高度.
小智 5
这是我使用的解决方案
NSUInteger contentHeight = [[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.body.scrollHeight;"]] intValue];
您的网页视图的框架应小于所有可能的内容大小
归档时间:
11 年,9 月 前
查看次数:
5512 次
最近记录: