RSS with Images in tableView

69 views
Skip to first unread message

a avanadra

unread,
Jun 9, 2010, 2:04:31 PM6/9/10
to iphonesdkd...@googlegroups.com
Hello!
Im trying to make an rss-app, with the feed in a table, each row with a title and an (thumbnail) image. I have everything working fine with just text, but i can’t seem to get the images to show up... Can somebody please help me with this? It would mean a lot to me!!!

My xml data looks like this:

    <item>
    <title> Henin slumps to defeat by Stosur</title>
    <description> Australia's Sam Stosur becomes the first player to beat Justine Henin at the French Open for six years as she stuns the four-time champion to reach the quarter-finals.</description>
    <link> http://news.bbc.co.uk/go/rss/-/sport2/hi/t...tm</link>
    <guidisPermaLink="false">http://news.bbc.co.uk/sport1/hi/tennis/8714604.st m</guid>
    <pubDate>Mon, 31 May 2010 14:21:45 GMT</pubDate>
    <category>Tennis</category>
    <media:thumbnail width="66" height="49"       url="http://newsimg.bbc.co.uk/media/images/47961000/jpg/_47961207_henin282.jpg"/>
    </item>

Here's my cellForRowAtIndexPath part of RssViewController.m (up until now, without images):


    - (UITableViewCell *)tableViewUITableView *)tableView cellForRowAtIndexPathNSIndexPath *)indexPath{
    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"rssItemCell"];
    if(nil == cell){
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"rssItemCell"]autorelease];
    }
    cell.textLabel.text = [[[[self rssParser]rssItems]objectAtIndex:indexPath.row]title];
    cell.detailTextLabel.text = [[[[self rssParser]rssItems]objectAtIndex:indexPath.row]description];
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

    return cell;
}


Thanks!

Harshal Kothari

unread,
Jun 9, 2010, 11:44:08 PM6/9/10
to iphonesdkd...@googlegroups.com
Hiii,

i dunno anything about what do you want to do but i have an example of flickr which is based on RSS and UITableView to show images.

find the attachment.

--
You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
To post to this group, send email to iphonesdkd...@googlegroups.com.
To unsubscribe from this group, send email to iphonesdkdevelop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonesdkdevelopment?hl=en.



--
- Harshal Kothari
akosma-async-uitableview-5a64401.zip
Reply all
Reply to author
Forward
0 new messages