I am loading images into a UITableView from an RSS Feed.
I want to be able to tap on a cell, present another view controller and see a larger version of the image.
My problem is when I tap on a cell the image in the new view controller is not the one I tapped on.
Here's what I am doing.
First View Controller, this is done in didSelectRowAtIndexPath
Code:
ImageDetailViewController * imageDetail = [[ImageDetailViewController alloc] initWithNibName:@"ImageDetailViewController" bundle:nil];
imageDetail.image = image;
[self.navigationController presentModalViewController:imageDetail animated:YES];
[imageDetail release];
SecondViewController done in viewDidLoad
Code:
imageView.image = image;
Keep in mind the images are being loaded from an RSS Feed. Do I need to do any of the XmlParsing in the didSelectRowAtIndexPath?
If anyone has done something like this before and knows of a solution please share!
Thanks!