I included the files from the project in mine. I also included the QuartzCore
Framework in the project.
Here is my main 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
// ...
}
}
When I try to simulate the project, I get the following error :
titleLabel.type = .Continuous Thead 1: EXC_BAD_ACCESS (code=1, address=0x10002)
Where I'm wrong ?