I have a TaskListViewController class, and I'm going to ShowTaskViewController. At the beginning in ShowTaskViewController I did not have a view object. I only had a TableView object where I dynamically loaded data from a database and worked fine.
Now I deleted the TableView object in the ShowTaskViewController class, and I dragged the View object into the .xib file, and also dragged the TableView object on top of it because I want to have some extra buttons in this class, but now it shows me this error: Terminating the application from due to the unannounced exception "NSInternalInconsistencyException", reason: '- [UIViewController _loadViewFromNibNamed: bundle:] loaded a zero of' ShowTaskViewController 'but the output point was not set.'
This is also the code that I used to go to the ShowTaskViewController class before it worked fine, now please help me make changes so that the TableView object loads the data correctly.
-(IBAction)showAllTasks:(id)sender { ShowTaskViewController *showTaskViewController = [[ShowTaskViewController alloc] initWithNibName:@"ShowTaskViewController" bundle:nil]; [self presentModalViewController:showTaskViewController animated:YES]; }
source share