【发布时间】:2015-02-20 23:39:47
【问题描述】:
我有一个非常简洁的动画,它基本上为集合视图单元格绘制了一个边框。
我的动画效果很好,我无法让它无限期地重复。
在:func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
我是这样设置单元格的:
var image = UIImage.animatedImageNamed("Shape + Oval ", duration: 0.5)
cell.cellImageView.animationRepeatCount = 1
cell.cellImageView.image = image
为什么animationRepeatCount 没有阻止我的单元格图像不断循环
【问题讨论】:
标签: ios swift animation uicollectionview uicollectionviewcell