Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "2Pv-MD-gdY-view-bDF-TR-G6E" nib but didn't get a UITableView.'
为什么我会这样?我的应用程序的要点是我有一个 UITableViewController 和一个触发操作表的按钮。当按下特定选项时,操作表会呈现一个视图控制器(模态)。这是我的代码:
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *buttonTitle = [actionSheet buttonTitleAtIndex:buttonIndex];
if ([buttonTitle isEqualToString:@"Text"]) {
AddTextViewController *addTextViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"addTextViewController"];
[self presentViewController:addTextViewController animated:YES completion:nil];
}
}
我可以提供任何进一步需要的信息,但我不确定出了什么问题。