Reputation: 10182
I'm Calling MainMenu View as:
MainMenu *obj=[[MenuViewController alloc] init];
[self presentModalViewController:obj animated:NO];
But it shows following error..
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MenuViewController" nib but the view outlet was not set.' * Call stack at first throw:
Please Fix it.. thank you..
Upvotes: 1
Views: 665
Reputation: 2455
i think your problem clearly in the error try to catch that error
loadViewFromNibNamed:bundle:] loaded the "MenuViewController" nib.....>>> but the view outlet was not set
Upvotes: 1
Reputation: 10422
You need to open your nib in interface builder and connect your view with the view in File's Owner
Upvotes: 4