You need to use attribute strings ( NSAttributedString) instead of strings ( NSString).
UITextViewhas property textand property attributedText. In your case, use the property attributedTextafter creating the assigned string.
user3821934
source
share