Reputation: 97
i have used gif image to show in UIImageView but there are showing only static images.what is the reason behined it i don't know.
so somebody please help me to solve this.
Upvotes: 2
Views: 311
Reputation: 3310
I recommend you to use SwiftGif.
Import the Gif.swift in your project and do the following:
// Returns an animated UIImage
let jeremyGif = UIImage.gifWithName("jeremy")
// Use the UIImage in your UIImageView
let imageView = UIImageView(image: jeremyGif)
For Objective c You can use this FLAnimatedImage
Upvotes: 1