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:
Henin slumps to defeat by Stosur 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. http://news.bbc.co.uk/go/rss/-/sport2/hi/tennis/8714604.stm http://news.bbc.co.uk/sport1/hi/tennis/8714604.st m Mon, 31 May 2010 14:21:45 GMT Tennis
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!