1

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 ?

w3spi
  • 4,380
  • 9
  • 47
  • 80
  • i think is not **.continus** it is **. MLContinuous**, check this property oncehttps://github.com/cbpowell/MarqueeLabel/blob/master/MarqueeLabel.h – Anbu.Karthik Nov 13 '15 at 12:35
  • @Anbu.Karthik Not sure it is that with swift. After tried, got an error. – w3spi Nov 13 '15 at 12:36

1 Answers1

3

Check in Interface Builder that your label's custom class is set to MarqueeLabel.

Juri Noga
  • 4,363
  • 7
  • 38
  • 51