UIWebView在ScrollView中不重绘 [英] UIWebView within a ScrollView does not redraw

查看:132
本文介绍了UIWebView在ScrollView中不重绘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在UIScrollView中有UIWebView。然后,在滚动时,Web视图正确显示前两页,但只绘制了第三页的一半。如果我点击web视图绘制内容,或者如果我在 -scrollViewDidEndDecelerating 中调用 - [UIWebView reload] 它显示的内容。

I have UIWebView within a UIScrollView. Then as I scroll, the web view displays first two pages correctly but does draws only half of the third the page. If I tap on the web view it draws the content or if I call -[UIWebView reload] in -scrollViewDidEndDecelerating, it shows the content.

是否有任何方法可以使网络视图绘制正确?

Is there any way I can make the web view draw correctly?

推荐答案

无法同时载入UIWebView。您必须加载一个,等待直到完成,然后加载下一个,等等。

UIWebViews cannot be loaded concurrently. You must load one, wait til it finishes, then load the next, and so on.

您可以在计时器上执行此操作,或等到滚动的UIWebView在加载数据之前的焦点。

You can do this on a timer, or wait until when the scrolled UIWebView has the focus before loading the data.

这篇关于UIWebView在ScrollView中不重绘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆