Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mark.p

macrumors newbie
Original poster
Nov 27, 2012
1
0
i have a window in which i want to display an image in a specific block of that window. The image is retrieved from the local XML file. I parsed the XML file and got the image value in log, but i don't know how to put it in that specific block. The below image pasted for the reference.

47r0U.png


The arrow mark represents that within this UIImageView i need to get the image. Also i have a doubt that do i need to mention any name for reference to UIIMageView in storyboard.

Am posting my parser code here,

Code:
NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Sample.xml"];
NSData *data = [[NSData alloc] initWithContentsOfFile:path];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:data];
[xmlParser setDelegate:theParser]

After this am using this code for getting image,
Code:
UIImage *image = [UIImage imageWithContentsOfFile:@"/Users/administrator/Desktop/imageApp/resources/Main_pic1.png"];

from this i dont know how to go. Kindly suggest me an idea
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.