apploft / ExpandableLabel

A simple UILabel subclass that shows a tappable link if the content doesn't fit the specified number of lines
MIT License
464 stars 126 forks source link

How do I bridge this with objective c? #39

Closed hardikamal closed 7 years ago

hardikamal commented 7 years ago

Hi,

Can you put up an example of bridging this with objective c code?

Thanks

michaelkamphausen commented 7 years ago

Read Apples Documentation on Mix and Match Interoperability. In addition, you will find lots of examples when you do your research.

hardikamal commented 7 years ago

I followed the documentation but i am not able to access the expandablelabel delegate of swift from objective c. How can i access that??

michaelkamphausen commented 7 years ago

The delegate cannot be accessed from objective-c code. If you need the delegate, you have to access it with swift.

hardikamal commented 7 years ago

any way where i can access that delegate in objective c?

michaelkamphausen commented 7 years ago

No.

hardikamal commented 7 years ago

Anyways I did it myself.

sabeenlabs commented 4 years ago

Anyways I did it myself.

How did you solve this