06-09-2010, 12:29 PM
#1 (permalink )
Registered Member
Join Date: Apr 2010
Posts: 11
RSS with Images in tableView
deleted
Last edited by avanadra; 03-22-2011 at 09:52 AM .
06-09-2010, 01:25 PM
#2 (permalink )
Senior Member
iPhone Dev SDK Supporter
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
Quote:
but i can’t seem to get the images to show up
The images dont show up because you're never setting the cell's imageView property with the image you want..
06-09-2010, 02:46 PM
#3 (permalink )
Registered Member
Join Date: Apr 2010
Posts: 11
xxx
Last edited by avanadra; 03-22-2011 at 09:52 AM .
06-10-2010, 01:51 AM
#4 (permalink )
Senior Member
Join Date: Feb 2010
Location: dallas
Posts: 219
any solution
hey i am also facing the same problem
i want to display images from xml but its not working
06-10-2010, 09:19 AM
#5 (permalink )
Senior Member
iPhone Dev SDK Supporter
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
I'm assuming the "image" in the RSS feed is just a URL, e.g.
http://newsimg.bbc.co.uk/media/image...7_henin282.jpg
That is, [[[self rssParser]rssItems] objectAtIndex:indexPath.row]image]; points to a string, not the image itself.
You need to take that URL and get the download the image:
Code:
cell.imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[[[[self rssParser]rssItems] objectAtIndex:indexPath.row]image]]]];
06-11-2010, 06:27 AM
#6 (permalink )
Registered Member
Join Date: Apr 2010
Posts: 11
xxx
Last edited by avanadra; 03-22-2011 at 09:52 AM .
08-06-2010, 08:42 AM
#7 (permalink )
Registered Member
Join Date: Aug 2009
Posts: 105
Quote:
Originally Posted by
avanadra
Hi thanks for replying again! So I wrote:
Code:
cell.imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[[[[self rssParser]rssItems] objectAtIndex:indexPath.row]mediaUrl]]]];
return cell;
but it crashes and i get the following in the console:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initWithString:relativeToURL:]:
hey avanadra, i am also working on same application... so any luck with it? are u able to display images in table view cell???
08-06-2010, 10:04 AM
#8 (permalink )
Registered Member
Join Date: Sep 2008
Location: London, UK
Posts: 1,050
Quote:
Originally Posted by
avanadra
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!!!
Thanks!
There is an Apple Example app called Earthquakes or something that is doing just this. Check it out.
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» Advertisements
» Online Users: 335
12 members and 323 guests
Absentia , Domele , fiftysixty , givensur , heshiming , iGamesDev , linkmx , michaelhansen , PixelInteractive , raihan.zbr , Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38