Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-09-2010, 12:29 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 11
avanadra is on a distinguished road
Default RSS with Images in tableView

deleted

Last edited by avanadra; 03-22-2011 at 09:52 AM.
avanadra is offline   Reply With Quote
Old 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
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

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..
smithdale87 is offline   Reply With Quote
Old 06-09-2010, 02:46 PM   #3 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 11
avanadra is on a distinguished road
Default

xxx

Last edited by avanadra; 03-22-2011 at 09:52 AM.
avanadra is offline   Reply With Quote
Old 06-10-2010, 01:51 AM   #4 (permalink)
Senior Member
 
Join Date: Feb 2010
Location: dallas
Posts: 219
gud4nuthin is on a distinguished road
Default any solution

hey i am also facing the same problem
i want to display images from xml but its not working
gud4nuthin is offline   Reply With Quote
Old 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
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

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]]]];
smithdale87 is offline   Reply With Quote
Old 06-11-2010, 06:27 AM   #6 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 11
avanadra is on a distinguished road
Default

xxx

Last edited by avanadra; 03-22-2011 at 09:52 AM.
avanadra is offline   Reply With Quote
Old 08-06-2010, 08:42 AM   #7 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 105
vamsi.ac is on a distinguished road
Default

Quote:
Originally Posted by avanadra View Post
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???
vamsi.ac is offline   Reply With Quote
Old 08-06-2010, 10:04 AM   #8 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,050
wuf810 is on a distinguished road
Default

Quote:
Originally Posted by avanadra View Post
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.
wuf810 is offline   Reply With Quote
Reply

Bookmarks

Tags
image, parsing tableviews, rss, tableview, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» 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
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:11 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0