Hey,
I'm working through a tutorial to mess around with a photo app, however instead of using storyboards, I'm using .xib files.
As a result of this, I've become stuck and am hoping someone might be able to help out.
Basically, you select a photo, and it takes you to another view (or in my case another .xib file) showing a larger version of the photo. Because I'm not using storyboards however, I'm unsure how to edit these two methods so that they can be used with an .xib.
Sorry if this is not very technically worded, I'm a newbie at obj-c.
I'm working through a tutorial to mess around with a photo app, however instead of using storyboards, I'm using .xib files.
As a result of this, I've become stuck and am hoping someone might be able to help out.
Basically, you select a photo, and it takes you to another view (or in my case another .xib file) showing a larger version of the photo. Because I'm not using storyboards however, I'm unsure how to edit these two methods so that they can be used with an .xib.
Code:
-(void)didSelectPhoto:(PhotoView*)sender {
//photo selected - show it full screen
[self performSegueWithIdentifier:@"ShowPhoto" sender:[NSNumber numberWithInt:sender.tag]];
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([@"ShowPhoto" compare: segue.identifier]==NSOrderedSame) {
StreamPhotoScreen* streamPhotoScreen = segue.destinationViewController;
streamPhotoScreen.IdPhoto = sender;
}
}
Sorry if this is not very technically worded, I'm a newbie at obj-c.