Make sure to give the segue an ID so that it can be found. In this example the segue ID would be “mySegueID”.
1 2 3 4 5 6 7 8 9 10 11 12 |
// prepareForSegue -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { NSLog(@"prepareForSegue: %@", segue.identifier); if ([segue.identifier isEqualToString:@"mySegueID"]) { // do something here... } } |