【发布时间】:2013-05-04 09:37:45
【问题描述】:
我正在创建一个 UIWebView,它作为子视图添加到 UIView,但是我无法让 WebView 滚动。任何建议表示赞赏。
- (UIWebView *) mainText
{
UIWebView *view = [[UIWebView alloc] init];
view.layer.borderWidth = 1.0;
view.frame = CGRectMake(8, 130, 275, 185);
[view loadHTMLString:@"<font color=\"blue\">Hello Worldcut features is an option we skip the admin site entirely and just have josh do the AP then I cut out all the filters and I can cut out all the we don't need the social aspect on this quite yet l the filters and I can cut out all the we don't need the social aspect on this quite yetl the filters and I can cut out all the we don't need the social aspect on this quite yetl the filters and I can cut out all the we don't need the social aspect on this quite yetl the filters and I can cut out all the we don't need the social aspect on this quite yetl the filters and I can cut out all the we don't need the social aspect on this quite yetl the filters and I can cut out all the </font>" baseURL:nil];
return view;
}
【问题讨论】:
-
它在我的代码中滚动,我只是在我的视图中复制和粘贴。还要确保检查父用户交互是否已启用。
-
已接受答案的最后一部分是我认为您需要研究的内容:stackoverflow.com/questions/10875971/…
-
发帖前请先搜索
-
是的,我进行了搜索,并且确实遇到了 Clint 提供的链接,但是该解决方案在我的情况下不起作用。 Mayank,很高兴知道它对你有用。我会继续环顾四周,看看是否还有其他事情发生。
-
出于好奇,当答案作为评论给出时,OP如何关闭这个问题? (或者我应该在询问之前搜索常见问题解答:|)