UITableView Lazy Image Load, images appear after table STOPS scrolling

混江龙づ霸主 提交于 2019-12-03 03:20:20
StijnSpijker

I just found my answer thanks to the 'Related' feature to the right.. Delayed UIImageView Rendering in UITableView

You have to start NSUrlConnection in a different run-loop, so that you receive data while the table is scrolling.

Thanks for the answers!

Nuthatch

Take a look at the Apple example LazyTableImages.

If you request all the images for your table asynchronously, they will load as they arrive.

You'll notice some applications wait for scrollViewDidEndDragging and loadImagesForOnscreenRows to be truly lazy and only request images for rows the user is currently examining.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!