0

I have an UITextView which takes data from XML. Now that XML node is basically a html node viz.

"font face='Monaco' size='3'>Hello<b><i><font color=#EE0000>World</font></i></b>123</font".

I have following code :

myTextView.text = value of the xml ("font face='Monaco' size='3'>Hello<b><i><font color=#EE0000>World</font></i></b>123</font").

How to convert this into html so that the UITextView translate the node into html.

1 Answer 1

1

You should use UIWebView and its loadHTMLString method:

-(void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIWebView_Class/Reference/Reference.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.