ios – Swift使用多种选项动画UIView

前端之家收集整理的这篇文章主要介绍了ios – Swift使用多种选项动画UIView前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在动画UIView时,swift如何处理多个选项?我试过了
UIView.animateWithDuration(0.2,delay: 0.0,options: .Repeat | .Autoreverse,animations: {self.alpha = 0.0},completion: nil)

但似乎混淆了|用一个按位运算符:

Undefined symbols for architecture i386:
 "__TFSsoi1oUSs17_RawOptionSetType_USs21BitwiSEOperationsTypeSs9Equatable__FTQ_Q__Q_",referenced from:
      __TFC17TextDrawing10cursorViewW8blinkingSb in cursorView.o
ld: symbol(s) not found for architecture i386
clang: error: linker command Failed with exit code 1 (use -v to see invocation)

我正在使用AppStore的最新Xcode版本.

@R_404_323@

与Swift 2,现在是:
UIView.animateWithDuration(0.2,options: [.Repeat,.Autoreverse],completion: nil)
原文链接:https://www.f2er.com/iOS/336594.html

猜你在找的iOS相关文章