在动画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版本.
解决方法
与Swift 2,现在是:
UIView.animateWithDuration(0.2,options: [.Repeat,.Autoreverse],completion: nil)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。