如何在选定的TextView中设置文本的颜色
答
这是否对你的工作?
NSString *selection = [textView.text substringWithRange:textView.selectedRange];
+0
非常感谢....其实我需要在UITextView中为选定的字符串设置textColor。 – user891268
UITextField or UITextView? – Krishnabhadra