Objective c load Detailview的问题

Objective c load Detailview的问题,objective-c,detailview,Objective C,Detailview,我有以下代码: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { TabellenDetailViewController *detailViewController2 = [self.storyboard instantiateViewControllerWithIdentifier:@"TabellenDetailViewController"];

我有以下代码:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    TabellenDetailViewController *detailViewController2 = [self.storyboard instantiateViewControllerWithIdentifier:@"TabellenDetailViewController"];
    Book2 *aBook2 = [books2 objectAtIndex:indexPath.row];
    detailViewController2.tea_names = [NSString stringWithFormat:@"%@", aBook2.tea_name];
    [self.navigationController pushViewController:detailViewController2 animated:YES];
}
为了更好地理解,我有一个故事板:

导航控制器->MasterTableViewController->DetailMasterTableViewController->TabelleViewController->DetailTabelleViewcontroller

TabelleViewController可以正常工作,如果我在TabelleViewController中选择一个单元格,程序将停止,并出现以下错误:

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([XMLAppDelegate class])); <--- Here with Thread1:Program received signal: "SIGABRT".
    }
}
intmain(intargc,char*argv[])
{
@自动释放池{
返回UIApplicationMain(argc、argv、nil、NSStringFromClass([XMLAppDelegate类]);
  • 检查
    tea\u names
    属性是否由
    tabellendeailviewcontroller
    实例保留
  • 添加异常断点以查看确切的异常位置
单击导航器中的断点符号(右二) 窗格中,单击窗格底部的+按钮,然后选择添加 异常断点。从出现的气泡中,我选择了 从异常选择中选择Objective-C(尽管我怀疑您可以 如果你愿意的话,请安全地离开它),我离开了中断选择 在掷骰时。单击“完成”后,您将有一个新的 列表中的异常断点。()

  • 启用僵尸模式以跟踪内存问题()

问题解决了!问题是我在错误的故事板中更改了prosperities!谢谢!