HTMLLabel icon indicating copy to clipboard operation
HTMLLabel copied to clipboard

Use of undeclared type 'HTMLLabel'

Open mergesort opened this issue 9 years ago • 8 comments

I have a UITableViewController in which I'm trying to conform to HTMLLabelDelegate, and when I add the delegate methods:

func HTMLLabel(label: HTMLLabel!, tappedLinkWithURL URL: NSURL!, bounds: CGRect)

and

func HTMLLabel(label: HTMLLabel!, shouldOpenURL URL: NSURL!) -> Bool

I get an error of Use of undeclared type 'HTMLLabel'.

Simply declaring an HTMLLabel results in the same error.

var label: HTMLLabel //Use of undeclared type 'HTMLLabel'

Currently it's integrated via Cocoapods. I did import HTMLLabel, and still it's not seeing the type (even though autocomplete sees the methods). I'm wondering if the class is somehow being marked as internal, instead of public, so it's not being able to be seen in another module?

mergesort avatar May 11 '15 18:05 mergesort