Mahesh Babu
Mahesh Babu

Reputation: 3433

How can I retrieve images from local folder using XML to my app

What I did is creating a local folder named images and retrieving the images from the folder.

For that I am writing code UIImage imageNamed:@"image.jpg". But I need to get images using XML file dynamically.

How can I do this? Please post some code or link.

Upvotes: 1

Views: 196

Answers (1)

Sebastian Wramba
Sebastian Wramba

Reputation: 10127

You could probably use an XML parsing framework that reads your XML file and creates an NSSet or something similar filled with your images.

An alternative could be using JSON instead of XML (faster, less overhead). I made some good experiences with json-framework.

Upvotes: 1

Related Questions