开发者

UIWebViews in UITableView do not render while the table is being scrolled

开发者 https://www.devze.com 2022-12-23 14:03 出处:网络
I have a UITableView with UIWebViews within the cells for the purpose of displaying rich text. The UITableViews load html strings locally. However, when the table is being scrolled, the UIWebViews do

I have a UITableView with UIWebViews within the cells for the purpose of displaying rich text. The UITableViews load html strings locally. However, when the table is being scrolled, the UIWebViews do not load the html strings specified in "cellFor开发者_如何转开发Row..." until the UITableView stops scrolling. Is there any way to override this behaviour so that the UIWebViews load content even when the tableview is scrolling?


It seems that this is not possible at this time for performance reasons. The best way to work around this issue is to render any downloaded content directly onto a UIView by overriding drawRect.

0

精彩评论

暂无评论...
验证码 换一张
取 消