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
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.
Sorry, incorrect NSLinkAttributeName. This attribute from open-source library and it's not equal NSLinkAttributeName from Apple.
//NSLinkAttributeName = NSLink
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.