How to handle HTML Strings in Cocoa Touch
Posted
by balexandre
on Stack Overflow
See other posts from Stack Overflow
or by balexandre
Published on 2010-04-13T08:01:53Z
Indexed on
2010/04/13
8:12 UTC
Read the original article
Hit count: 427
I'm using a RSS Reader and works fine when I tap the UITableViewCell
to load the <link>
either in a UIWebView
or to open Safari on that link.
But I really want to learn how to load the Topic content into the application instead showing the entire site or jump to Safari
In the RSS feed per each <item>
there is a <body>
tag (and a <Description>
that contains the same but encoded) that contains the topic content, like the image below shows:
So, instead of catching the <link>
I'm assigning the <body>
. Problem is that it does not work correctly :-(
for this example I only get the content until the first <br>
nothing more.
- I'm using a
NSString
as I would use in C#, should I use any other object, is there a better object to use on such data? - Should I use an
UITextView
to load this information (as it has scroll already) or I should use aUIWebView
instead?
Thank you.
© Stack Overflow or respective owner