Answer the question
In order to leave comments, you need to log in
NSAttributedString and blockquote. How to do?
How to make blockquote map to NSAttributedString ?
Style "border-left:3px solid black;" does not work in UITextField.
NSString *testString = @"<style>\n"
".quote {\n"
"border-left:3px solid black;\n"
"}\n"
"</style>\n"
"<body>\n"
" <div class=\"quote\"><div>This is a quote</div></div>\n"
" <br/>\n"
" Bla bla bla\n"
"</body>";
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithData:[testString dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
self.messageLabel.attributedText = attributedString;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question