objective c - HTML to NSMutableAttributedString not working in ios 6 -


I am using code to convert HTML text to NSMutableAttributedString and display it in UITextView. -

  attributedStringTitle = [[NSMutableAttributedString alloc] initWithData: [TitleString Dataupting Encoding: NSUnicodeStringEncoding] Option: @ {NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType} documentArbute: zero error: zero];  

It is working fine for iOS 7 or above but is not working on iOS 6. help please.

NSHTMLTextDocumentType is not available in iOS 6:

From Apple Docs:

NSHtml Text Document Type Hypertext Markup Language (HTML) document.

Available in iOS 7.0 and later.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -