The best example to explain my situation is to use a blog post. Say I have a UITableView loaded with the blog post headers I received from the API. When I click on the line, I want to show a detailed blog post.
In this case, the API passes several fields, including the "message body" (this is the HTML text). My question is: what should I use to display it, so that it displays as formatted HTML? Should I use UIWebView for this? I'm not sure if you use UIWebView when you literally browse a web page (for example, initialize it with a URL or something), or if you can pass an HTML string to it and it will format it correctly.
This page will display several other fields, such as title, category, author, etc. I just use UILabels for them, so there is no problem. But I do not know what to do with a piece of HTML. I do all this programmatically, by the way.
If you can’t say, I'm relatively new to iOS development, only about 2-3 weeks, with NO obj-c background. Therefore, if UIWebView is the right approach, I would also appreciate any “received”! notes, if any.
ios objective-c iphone uitextview uiwebview
rpheath Nov 09 '10 at 20:36 2010-11-09 20:36
source share