optonaut / ActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to initialize label: Thread 1: EXC_BAD_ACCESS (code=2, address=0x283e60ec0)

abeticlairon opened this issue · comments

I am unable to initialize the active label within a table view cell. I get the error Thread 1: EXC_BAD_ACCESS (code=2, address=0x283e60ec0) at commentLabel.enabledTypes = [.mention] when attempting to run the app. How could I fix this? The label is an IBOutlet @IBOutlet weak var commentLabel: ActiveLabel!

Fixed it by setting the UILabel as ActiveLabel in the interface builder