我可以在 IOS10 的 UIImageView 中显示 GIF 图像吗?

Can i show GIF images in UIImageView in IOS10?

我使用 gif 图片在 UIImageView 中显示,但只显示静态 images.what 是我不知道的原因。

有人请帮我解决这个问题。

我推荐你使用SwiftGif

在您的项目中导入 Gif.swift 并执行以下操作:

// Returns an animated UIImage
let jeremyGif = UIImage.gifWithName("jeremy")

// Use the UIImage in your UIImageView
let imageView = UIImageView(image: jeremyGif)

对于Objective c你可以使用这个FLAnimatedImage