hi i am new to iPhone.what i need is i have to get images from XML file.For that what i did is creating a XML file with code as fallows
<?xml version="1.0" encoding="UTF-8"?>
<Allcategory>
<image>parrot.jpg</image>
</Allcategory>
And i am adding the image in local folder and calling the image in my class for that i am write the code as fallows.
XMLAppDelegate *appdelegate = (XMLAppDelegate *)[[UIApplication SharedApplication]delegate];
Book *abook = [appdelegate.books objectAtindex:0];
NSLog("image %@",abook.image);
here i am getting the image:parrot.jpg in console. but i get null value in UIImage for that i am writing the code as fallows
UIImage *image = [[UIImage imageNamed:abook.image];
NSLog("image %@",abook.image);
here i am getting in console as image (null). what is the wrong,really i dont know how to get image and how display image in imageview that image is get from xml file. pls help me.thank u in advance.