我有這樣的代碼:與負載的DetailView問題
- (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".
}
}
問題so LVED! 問題是我改變了錯誤的故事板中的繁榮! Thx很多! –