Krelborn / KILabel

A simple to use drop in replacement for UILabel for iOS 7 and above that highlights links such as URLs, twitter style usernames and hashtags and makes them touchable.
MIT License
470 stars 132 forks source link

Doesn't work if string contains NSLinkAttributeName #24

Closed AlexIzh closed 9 years ago

AlexIzh commented 9 years ago

KILabel doesn't work with this NSAttributedString: "ASDSAFASFA { NSLinkAttributeName = "https://google.com/"; }" It works only if: "https://google.com/ { NSLinkAttributeName = "https://google.com/"; }" Or: "https://google.com/" I.e. plain string should contains link, but if plain string doesn't contains links and attributes for this string contains it, then KILabel doesn't shows links.

AlexIzh commented 9 years ago

Sorry, incorrect NSLinkAttributeName. This attribute from open-source library and it's not equal NSLinkAttributeName from Apple. //NSLinkAttributeName = NSLink