在动画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)