Dynamically pulling images from XML for iPhone App

Posted by Simon Hume on Stack Overflow See other posts from Stack Overflow or by Simon Hume
Published on 2010-03-17T21:14:33Z Indexed on 2010/03/18 2:31 UTC
Read the original article Hit count: 382

Filed under:
|

I've got my iPhone app pulling down live data content via XML nicely, and I've formatted the UITableView cells to display the content without too many headaches.

However, at the moment, for each cell I'm just showing a default graphic for now, but I want this to be pulled down from my server too.

The code snippet that grabs the image (which is actually in my project) is:

cell.imageView.image = [UIImage imageNamed:@"TBC.png"];

But that will need to be the dynamic image.

In my XML, am I better just returning 'mypic.png' and let the SDK determine the full path, like http://myapp.com/mypic.png or storing the full URL to the image in the XML?

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about Xml