0
votes

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..

3
The error description itself mention what you have to do.Try to fix it yourself. - itZme
i did it.. thanks for -ve voating.. - rptwsthi

3 Answers

4
votes

You need to open your nib in interface builder and connect your view with the view in File's Owner

1
votes

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
0
votes

Open your nib file and set your view outlet.