我将the project中的文件包含在我的文件中。我还在项目中包含了QuartzCore
框架。
这是我的主要ViewController:
class IndexViewController: UIViewController {
@IBOutlet weak var titleLabel: MarqueeLabel!
override func viewDidLoad() {
super.viewDidLoad()
// Continuous Type
titleLabel.tag = 101
titleLabel.type = .Continuous
titleLabel.scrollDuration = 15.0
titleLabel.animationCurve = .EaseInOut
titleLabel.fadeLength = 10.0
titleLabel.leadingBuffer = 30.0
titleLabel.trailingBuffer = 20.0
// ...
}
}
当我尝试模拟项目时,出现以下错误:
titleLabel.type = .Continuous Thead 1: EXC_BAD_ACCESS (code=1, address=0x10002)
我哪里错了?