【发布时间】:2015-06-14 22:03:56
【问题描述】:
我正在创建一个 UIView 动画:
UIView.animateWithDuration(0.1,
delay: 0,
options: (.AllowUserInteraction | .Repeat | .Autoreverse),
animations:
{ () -> Void in
// Animate
},
completion: nil)
但是编译器说“找不到成员“Autoreverse””,或者最后的任何位掩码,除非有一个选项。 Swift 2 中的语法有变化吗?我看不到 Swift 文档中的任何内容,也记不起 WWDC 演示文稿中的任何内容。
或者它可能只是一个错误?
提前致谢
【问题讨论】: