- (void)webViewDidFinishLoad:(UIWebView *)webView {
for (UIScrollView *view in webView.subviews) {
// int miHeight;
if ([view isKindOfClass:[UIScrollView class]]) {
NSString *str = [webView stringByEvaluatingJavaScriptFromString:@"document.body.scrollHeight;"];
int iHeight = [str intValue];
if (iHeight<10) {
iHeight = 10;
}
webHeight = iHeight;
webView.frame = CGRectMake(0, 166, 320, webHeight+166);
// NSDictionary *dic = [[NSDictionary alloc] initWithObjectsAndKeys: nil];
//
// [dic setValue:[NSString stringWithFormat:@"%d",iHeight] forKey:[NSString stringWithFormat:@"%d",webView.tag]];
[self OnLoadFinish:(WebViewCell *)webView.superview.superview];
}
}
}
- (void)OnLoadFinish:(WebViewCell *)sender {
[m_tableview beginUpdates];
//..........
[m_tableview endUpdates];
}