MarqueeLabel Swift不工作

我把这个项目的文件包含在我的里面。 我还在项目中join了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)

我哪里错了?

检查Interface Builder中标签的自定义类是否设置为MarqueeLabel