【发布时间】:2015-07-21 13:21:39
【问题描述】:
我正在使用以下代码为文本字段设置动画:
UIView.animateWithDuration(0.5, delay: 0.4,
options: .Repeat | .Autoreverse | .CurveEaseOut, animations: {
self.password.center.x += self.view.bounds.width
}, completion: nil)
我收到错误Could not find member 'Repeat'
代码只有在我只设置一个选项时才有效。 为什么不让我设置多个选项?
【问题讨论】:
标签: uiview swift2 animatewithduration