2017-04-09 75 views

回答

1

这里是你可以创建不同的图像动画图像

let images = [UIImage(named: "image1"), UIImage(named: "image2"), UIImage(named: "image3")] 
let animated = UIImage.animatedImage(with: images as! [UIImage], duration: 0.5) 
// assign your animated image to your imageView that's all  
imageView.image = animated