gdavis/FGallery-iPhone — Issue #16: Question about using Segues
Author: jmattos
Created: 2012-02-19 05:10:37+00:00
State: open

I'm trying to use segues and storyboards with the FGalleryViewController and i think I'm missing something

I have my TableViewController (which implements and the methods)connected to a View Controller which I've changed to the type FGalleryViewController in the Story Board, and in the

(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[self performSegueWithIdentifier:@"ShowGallery" sender:self];
}

Then, in my prepareForSegue, I have the following

if ([segue.identifier isEqualToString:@"ShowGallery"]) {
FGalleryViewController *controller = (FGalleryViewController *) segue.destinationViewController;
controller.photoSource=sender;
}

The problem is there's no way to do the "initWithPhotosouce" so I'm setting the photosource after the fact.

Everything seems to work, except that the photos arent showing up.. just black. I'm using the default network images in the example and I debugged so I know they exist and are being set right.

am I missing something?