UIWebView in ScrollView does not redraw

I have a UIWebView in a UIScrollView. Then, when I browse, the web view displays the first two pages correctly, but only draws half the third page. If I click on the web view, it draws the content, or if I call -[UIWebView reload] in -scrollViewDidEndDecelerating , it displays the content.

Can I draw a web view correctly?

+3
source share
2 answers

UIWebViews cannot be loaded at the same time. You have to download it, wait for it to finish, then download the next one, etc.

You can do this on a timer or wait for the scrolled UIWebView to have focus before loading the data.

+2
source

All UIViews have a size limit of 1024x1024 pixels. This is indicated at the end of the Overview section of the UIView documentation.

If your webview should contain more than 1024 pixels of content, you will have to pull it out of the parent scroll view and let it control the scroll independently.

0
source

All Articles