take images from a cell , into next view controller

Posted by richard Stephenson on Stack Overflow See other posts from Stack Overflow or by richard Stephenson
Published on 2010-04-09T08:11:26Z Indexed on 2010/04/09 8:13 UTC
Read the original article Hit count: 402

Filed under:
|
|

hi guys , i asked this question yesterday but it doesnt seem to have asked properly so im trying again

in my app im parsing in an xml file , in that file there is a path for an image to download

an in my tableview controler i have this to download the image and display it in the cell

NSURL *url = [NSURL URLWithString:aStory.picture];
 NSData *data = [NSData dataWithContentsOfURL:url];
 UIImage *img = [[UIImage alloc] initWithData:data];

im then pushing another view controller on the top and displaying some text in a text view , but i also want to take the image from the cell selected and put that in there too , but everything i try does not work.

any ideas on how i can do this

Thanks in advance Richard

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c