【发布时间】:2020-12-14 08:12:13
【问题描述】:
我在 UITableview 中渲染 GIF,但由于渲染 gif,它需要时间(就像我每次上下滚动时它都会卡住一会儿)。渲染gif,我用的是这行代码
UIImage.gifImageWithName("funny")
https://iosdevcenters.blogspot.com/2016/08/load-gif-image-in-swift_22.html
因此,如果有其他解决方案,请向我提出建议。谢谢
【问题讨论】:
-
尝试在后台线程中加载 gif 图像。这只是一个猜测。