IOS help: downloaded tip but socket was not installed

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]; } 
+4
source share
2 answers

first declare the outlet for your new tableView (Ctrl + drag from xib to the interface file) and later do something like this:

 self.view=myTableView; 
+3
source

This is because you have xib you have not set your point of view.

Open the xib select File Owner , right-click on it and map your viewpoint to the UIView in xib.

For more details plz check the following links:

Loaded tip but no exit viewpoint set - new for InterfaceBuilder

Error in Xcode "output viewpoint not set." "

Hope this helps :)

+8
source

All Articles