【发布时间】:2014-11-10 19:22:11
【问题描述】:
我正在使用 XIB 为 iOS 7 和 iOS8 开发基于表视图的 iOS 应用程序,我需要将 UIWebView 显示为表视图的页脚视图。我在我的XIB中添加了UIWebView,我不知道为什么我不能根据内容滚动完整的UIWebView,好像被锁定了。
这是我的代码:
- (void)webViewDidFinishLoad:(UIWebView *)aWebView {
webViewSocial.scrollView.scrollEnabled = NO;
CGFloat height = [[webViewSocial stringByEvaluatingJavaScriptFromString:@"document.height"] floatValue];
CGFloat width = [[webViewSocial stringByEvaluatingJavaScriptFromString:@"document.width"] floatValue];
CGRect frame = webViewSocial.frame;
frame.size.height = height;
frame.size.width = width;
webViewSocial.frame = frame;
tblAlerts.tableFooterView = webViewSocial;
}
【问题讨论】:
标签: ios uitableview uiwebview ios8