You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You want only one OHAttributedLabel with an attributedString composed of multiple colors, or multiple OHAttributedString with a different color each?
For the second case, the solution is obvious: configure each instance with the wanted color.
For the first case, it is not currently possible. But we could imagine adding a delegate method that works the same way it does for the linkColors (see lines 240 and 250 of OHAttributedLabel.m), using the color returned by the delegate if the delegate method is implemented, and the color in the property if not. Feed free to propose a pull request for that (sorry but I won't have time to add that code myself, but if you do I can easily merge)
Activity
AliSoftware commentedon Sep 19, 2013
You want only one
OHAttributedLabelwith an attributedString composed of multiple colors, or multipleOHAttributedStringwith a different color each?For the second case, the solution is obvious: configure each instance with the wanted color.
For the first case, it is not currently possible. But we could imagine adding a delegate method that works the same way it does for the linkColors (see lines 240 and 250 of
OHAttributedLabel.m), using the color returned by the delegate if the delegate method is implemented, and the color in the property if not. Feed free to propose a pull request for that (sorry but I won't have time to add that code myself, but if you do I can easily merge)DZamataev commentedon Sep 30, 2013
Certainly not
OHAttributedStringbutNSAttributedString.TamilRaja commentedon Dec 10, 2013
HI
I have change the background colour using singleton class. Any ideas or sample code (IOS) .