OHAttributedLabel icon indicating copy to clipboard operation
OHAttributedLabel copied to clipboard

Can I change background color of text in some range?

Open ghost opened this issue 12 years ago • 1 comments

I'd like to add(or change) background color for text in a certain range. Is it possible with the current version of OHAttributedLabel? iOS 6's NSAttributedString supports NSBackgroundColorAttributeName attribute, but my app should support at least iOS 5.0 so it's not an option.

ghost avatar Apr 03 '13 05:04 ghost

ref #148 ?

Don't hesitate to propose a PR for that, at least to propose a commodity method for setting NSBackgroundColorAttributeName

AliSoftware avatar Oct 06 '13 21:10 AliSoftware