【发布时间】:2016-09-04 23:04:19
【问题描述】:
我正在快速处理 UIImageView 转换。我将六个图像存储在一个数组中,并将该数组提供给 “imageview.animationImages ” 我正在尝试让它作为“Gif 动画”工作,我编写的代码如下:
logoImages = NSMutableArray(array: ["backGround4.jpeg","backGround3.jpeg","backGround.jpeg","16.jpeg","23.jpeg","backGround1.jpeg"])
imageview.animationImages = NSArray(array: ["backGround4.jpeg","backGround3.jpeg","backGround.jpeg","16.jpeg","23.jpeg","backGround1.jpeg"]) as? [UIImage]
imageview.animationDuration = 1.5
imageview.animationRepeatCount = 1
imageview.startAnimating()
它不起作用。谁能告诉我我在这里犯了什么错误? 提前致谢
【问题讨论】:
标签: ios swift uiimageview nsarray