1

キャッチされない例外 'NSInvalidArgumentException' が原因でアプリを終了しています。理由: 'Receiver () には識別子 '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];
  }

tableviewcell を押すと、MySegue viewController が表示されるはずですが、キャッチされない例外 'NSInvalidArgumentException' が原因でアプリを終了しているというエラー メッセージが表示されます。

storyboardsegue 識別子があるときにエラーが発生するのはなぜですか。

手伝ってくれてありがとう。

4

1 に答える 1