I am working on a chat application. When I copy text from anywhere and paste it into my text field, I want the text to be stripped from whatever font, size, color, etc. So it's in a default/plain-text format. Then I want to set my own, text style before sending the text.
Tried using NSPlainTextDocumentType
but that didn't work.
UIFont *font = [UIFont fontWithName:@"GothamRounded-Bold" size:14];
text = [self.messagesTextView.text setFont:font];
text = NSPlainTextDocumentType;
Expect the text to be converted to plain-text format and then have the GothamRounded-Bold size:14
style added to it.