Assets 的名称是 loading_apple,但是当我添加以下代码时,出现空指针异常错误:
let img = UIImage (named: "loading_apple")
那么我怎样才能显示这个 gif 呢? :(
希望有人能帮助我。
最佳答案
我建议使用 FLAnimatedImage https://github.com/Flipboard/FLAnimatedImage
关于ios - 在 UIImageView IOS 中加载动画 gif,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35566048/