-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automaticallyAddLinksForType should default to None #50
Comments
My answer might seem awkward, but I will only agree with you when... I will have some documentation on OHAttributelLabel ! The problem is that if I set it to none, I have a lot of questions by mail/issues on github regarding stuff like "I don't understand why links are not detected" and so on... That's quite the same problem with "userInteractionEnabled" which is NO by default, but if I keep this UILabel's default value for OHAttributedLabel, a lot of people mail me because they managed to make the links detected (underlined and blue) but not understanding why these links are not clickable... So typically I would agree and keep it to None, but in practice it keeps me away from doing the support for a lot of redondant emails ;) |
+1 to not adding links by default In particular adding links for telephone numbers does an extra call to canOpenURL:. that adds a little overhead to the initialization of labels. This can be a minor annoyance when creating lots of labels. The only option available in this case is code removal. |
Yes, should remove the default adding links behavior. I find that if the label's text is a phone number, and I assign a custom url to it, it will do the right thing on iPod and iPad, but not work on iPhone. |
As explained by my previous answer, I understand your requests here but I bet than as soon as I modify the default values, I will have complaints the other way around, about it being removed ;) That's quite the same problem as with the default value of The problem with default values is that you can never satisfy everyone needs all at once. Some people will use In the next version anyway, I will probably isolate the code that sets the default values in a dedicated method (quite like the |
Retina resolution Checkmark graphics
Hello,
I think OHAttributedLabel should by default behave like UILabel. Therefore it should not automatically add links. Additional behavior should rather be opt-in than opt-out.
Looking forward to the discussion :)
Best,
Ullrich
The text was updated successfully, but these errors were encountered: