I am trying to pass the value of a string from an array to an instance of ImageViewer
when building a table view cell, but I am getting nil values. Here is the code:
NSString *file = [[NSString alloc] init ];
file = [photoFiles objectAtIndex:indexPath.row];
ImageViewer *imageView = [[ImageViewer alloc] initWithNibName:@"ImageViewer" bundle:nil];
imageView.fileName = file;
[self.navigationController pushViewController:imageView animated:YES];
[imageView release];
Can you help me please to fix this problem?