【发布时间】:2015-06-17 22:46:34
【问题描述】:
您好,我正在尝试通过使用完成调用函数来完成 360 打开无限循环。一切似乎都在工作,但该函数没有再次被调用。我尝试了许多类型的完成格式,它们都打印它被调用,但是函数的实际调用不起作用。我错过了什么吗?谢谢
func rotateBackground()
{
UIView.animateWithDuration(5, delay: 0, options: .CurveLinear, animations: {
self.backgroundImage.transform = CGAffineTransformMakeRotation((180.0 * CGFloat(M_PI)) / 180.0)
}, completion: { (value: Bool) -> Void in
self.rotateBackground()
}
)
}
【问题讨论】: