View Full Version : Tableview image in RSS app

Feb 26, 2009, 06:44 PM
So, basically I have a glorified RSS reader. It works great: the NSMutableArray of entries shows up in a standard UITableview, and if you select a row, it loads the entry in the app's browser. But, now that I know a little bit more (this is my first app), I'd like to put an image on the side of the table like in the YouTube app or the iPod when you sort by album. Although I haven't messed with it, I mostly understand how you would do this if you were using a static image, but my app will be pulling the thumbnail that is in each RSS entry (for this app it's a YouTube feed). I already have keys/objects set for the title, link, summary, and date, so I imagine I'd have to put in something similar for the image? Can anyone help me further? I've been working on this for a few days, and I'm rather stumped. I've examined the SeismicXML example, but again, those are images in the project file, not being pulled from the web.

Here's an example of the format of a YouTube RSS feed:
YouTube's Most Popular (feed://gdata.youtube.com/feeds/base/standardfeeds/most_popular?client=ytapi-youtube-browse&alt=rss&time=today)

Thanks for all the help on this forum. I know I'm not the only one with a question like this, and without Mac Rumors, my first app would have taken far longer!

EDIT: Here's a link to the YouTube API doc referencing the thumbnail, but I'm still quite lost: YouTube API: Thumbnails (http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_media:thumbnail)
That little thumbnail is exactly what I need to appear on the side of each cell in my app:

Feb 26, 2009, 07:43 PM
I believe this situation is already being discussed in this thread:
Loading remote images for UITableViewCell (http://forums.macrumors.com/showthread.php?t=553870)

Feb 26, 2009, 07:57 PM
Too true, dejo. Apologies!

Feb 26, 2009, 11:11 PM
Too true, dejo. Apologies!
Apology accepted. But I kinda pointed you to that thread so you could read through it and find a solution there rather than just repost the same thing you posted here.