1

UITableViewController を ctrl を使用して NavigationController に接続し、セグエを「モーダル」として定義し、セグエ識別子「DetailEvent」を定義しました。

UITableViewController のクラスに、次のコードを追加しました。

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{    
    NSLog(@"Row Selected = %i",indexPath.row);
    [self performSegueWithIdentifier:@"DetailEvent" sender:self.view];
}

エラー:

Row Selected = 1
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<AvailableEventsController: 0xa335500>) has no segue with identifier 'DetailEvent''
*** First throw call stack:
(0x175b012 0x1580e7e 0x5aa492 0xa6b53fa 0x103a0 0x5778d5 0x577b3d 0xf7ee83 0x171a376 0x1719e06 0x1701a82 0x1700f44 0x1700e1b 0x23ee7e3 0x23ee668 0x4c865c 0xbf7d 0x2755)
libc++abi.dylib: terminate called throwing an exception

ここで何が間違っていますか?

4

1 に答える 1

0

StoryBoard で別の UIViewController に取り組んでいました。

于 2012-12-25T09:43:32.653 に答える