Swift 2/Xcode 7 beta - 多个位掩码产生错误

4

我正在创建一个UIView动画:

UIView.animateWithDuration(0.1,
    delay: 0,
    options: (.AllowUserInteraction | .Repeat | .Autoreverse),
    animations:
        { () -> Void in

            // Animate

    },
    completion: nil)

但编译器说“找不到成员”Autoreverse“”,或者末尾的任何位掩码,除非有一个选项。Swift 2中的语法是否改变了?我在Swift文档中看不到任何内容,也没有记得在WWDC演示中看到过。或者可能只是个错误吗?谢谢。
1个回答

14

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接