Swift: asynchronously loading and displaying photos

前端 未结 2 1660
南旧
南旧 2020-12-15 15:07

I\'m struggling with the problem of displaying photo gallery from iPhone to collectionView.

Everything works fine if someone has 50 photos inside t

2条回答
  •  感动是毒
    2020-12-15 15:33

    Have you looked into SDWebImage? It has built in cache support so that the device doesn't have to download images it has previously downloaded every single time. It also has the benefit of being very simple to implement!

提交回复
热议问题