我一直收到以下错误:
Storyboard (<UIStoryboard: 0x7ebdd20>) doesn't contain a view controller
with identifier 'drivingDetails'
Run Code Online (Sandbox Code Playgroud)
这是代码:
- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UIViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"drivingDetails"];
controller.title = [[dao libraryItemAtIndex:indexPath.row] valueForKey:@"name"];
[self.navigationController pushViewController:controller animated:YES];
}
Run Code Online (Sandbox Code Playgroud)
我已经设置了identifier,UIStoryboard但我仍然收到此错误.

我是IOS的新手,最近开始使用Xcode 4.5.我看到每个viewController我都可以设置一些身份变量,包括故事板ID.这是什么以及如何使用它?

我开始在stackoverflow上搜索,但找不到任何解释.我认为这不仅仅是一些愚蠢的标签,我可以设置为记住我的控制器吗?它有什么作用?