UIView.animateKeyframesWithDuration(5, delay: 0, options: [UIViewKeyframeAnimationOptions.Repeat], animations: {
UIView.addKeyframeWithRelativeStartTime(0, relativeDuration: 0.3, animations: {
self.imageView!.center.x = self.view.bounds.width / 2
})
}, completion: nil)
}
比如上面这段代码 ,重复执行动画,每次执行完之后都比如说执行print("hello")
要怎么操作
求大神解答
动画闭包内的内容会在每次执行的时候触发