Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver () has no segue with identifier 'MySegue''
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UIViewController *viewController;
switch (indexPath.row) {
case AUDIO:
[self performSegueWithIdentifier:@"MySegue" sender:self];
break;
case PDF:
viewController = [[[PDFExampleViewController alloc] init]autorelease];
break;
case PROCEDURAL:
viewController = [[[ProceduralExampleViewController alloc] init] autorelease];
break;
default:
viewController = [[[UIViewController alloc] init] autorelease];
}
[self.navigationController pushViewController:viewController animated:YES];
}
When i press the tableviewcell then it should display MySegue viewController but it gives error message that Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver () has no segue with identifier 'MySegue''.
Why it is giving error when storyboardsegue identifier is there.
Thanks for help.
NSLog(@"my storyboard = %@", self.storyboard);at the top of your method. Does it log a storyboard, or does it log null? - rob mayoff