草庐IT

animationOptions

全部标签

iOS Swift - 无法使用数组 [UIViewAnimationOptions] 更改动画选项

我对Swift2中array的动画选项有一些问题。我可以在array中添加多个选项,如下所示:[.Repeat,UIViewAnimationOptions.Autoreverse]如果我添加动画功能(第一个示例):UIView.animateWithDuration(1,delay:0,options:[.Repeat,UIViewAnimationOptions.Autoreverse],animations:{}){(true)in}但是我不能像这样在array中添加动画选项(第二个例子):varanimationOptions=[UIViewAnimationOptions](