Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIWebView within a ScrollView does not redraw

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?


1 Answers

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

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

like image 131
davidjhinson Avatar answered Aug 07 '26 18:08

davidjhinson