我一直收到以下错误:
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但我仍然收到此错误.

如何重命名 Xcode 可视化调试器中的视图?这是 UIView 的海洋,因此几乎不可能判断约束适用于哪个 uiview。
UIViewControllers 显示标题,而 UIViews 除非它是 UIView 的派生类,否则显示标题。你如何区分它们?
案例切中要害