Question

I am currently working on RSS app (iOS), and i'm able to parse XML data to my TableView and display the images of the feeds to UIImageView.

Being more specific, i'm just able to get the thumbnail images on the CNN Money article for example, but i need the normal size images, to display in my UIImageView.

Feeds URL example - http://rss.cnn.com/rss/money_latest.rss

In this XML feed, i just only have one tag for grab images "media:thumbnail". How can i access the normal images, displayed when you open the full article?

Thanks in advance!

Edward.

Was it helpful?

Solution

You rss doesn't have the url of the normal image, but yes you can get it from parsing the details page which is link in your rss feed.

Open the link and try to find how can you get the <img src=> tag for the normal image in the link url.

You can simple use NSString substring function to get the src from the tag.. In your case as I seen the Normal Imagecan be extract from the trend <div id="ie_dottop"> the image tag after this div tag contains the normal image url, try to read the html page and parse, you will be able to get.

All the Best.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top