liri2006
liri2006

Reputation: 71

How to change selected text color?

I'm using UITextView, and I need to change color(or background) of selected text, is it posible and how to implement it?

Thx to all, I've understood that it was bad idea.

Upvotes: 7

Views: 1098

Answers (2)

AliSoftware
AliSoftware

Reputation: 32681

Thanks Joseph for mentionning my OHAttributedLabel class/work :) Hope that helped !

Anyway, since the date of your answer, I did some improvements to my class and fixed some stuff in the code, so don't forget to update / pull from the github repo!

PS: (Sorry for posting a new answer, can't add a comment to an existing answer yet on SO as I just signed in)

Upvotes: 0

Joseph Tura
Joseph Tura

Reputation: 6360

Take a look at OHAttributedLabel. You will find it here. It basically allows you to format only parts of a label.

Upvotes: 1

Related Questions